home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-05-21 | 18.4 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v20 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 35 35 3a 35 34 20 31 | 39 39 38 0a 3b 3b 3b 20 |:55:54 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 75 74 69 6c |s-20.3/l|isp/util|
|000000a0| 73 2f 68 69 70 70 69 65 | 2d 65 78 70 2e 65 6c 0a |s/hippie|-exp.el.|
|000000b0| 3b 3b 3b 20 65 6d 61 63 | 73 20 76 65 72 73 69 6f |;;; emac|s versio|
|000000c0| 6e 20 32 30 2e 34 20 22 | 45 6d 65 72 61 6c 64 22 |n 20.4 "|Emerald"|
|000000d0| 20 58 45 6d 61 63 73 20 | 20 4c 75 63 69 64 2e 0a | XEmacs | Lucid..|
|000000e0| 3b 3b 3b 20 62 79 74 65 | 63 6f 6d 70 20 76 65 72 |;;; byte|comp ver|
|000000f0| 73 69 6f 6e 20 32 2e 32 | 35 20 58 45 6d 61 63 73 |sion 2.2|5 XEmacs|
|00000100| 3b 20 32 32 2d 4d 61 72 | 2d 39 36 2e 0a 3b 3b 3b |; 22-Mar|-96..;;;|
|00000110| 20 6f 70 74 69 6d 69 7a | 61 74 69 6f 6e 20 69 73 | optimiz|ation is|
|00000120| 20 6f 6e 2e 0a 3b 3b 3b | 20 74 68 69 73 20 66 69 | on..;;;| this fi|
|00000130| 6c 65 20 75 73 65 73 20 | 6f 70 63 6f 64 65 73 20 |le uses |opcodes |
|00000140| 77 68 69 63 68 20 64 6f | 20 6e 6f 74 20 65 78 69 |which do| not exi|
|00000150| 73 74 20 69 6e 20 45 6d | 61 63 73 20 31 39 2e 0a |st in Em|acs 19..|
|00000160| 0a 28 69 66 20 28 61 6e | 64 20 28 62 6f 75 6e 64 |.(if (an|d (bound|
|00000170| 70 20 27 65 6d 61 63 73 | 2d 76 65 72 73 69 6f 6e |p 'emacs|-version|
|00000180| 29 0a 09 20 28 6f 72 20 | 28 61 6e 64 20 28 62 6f |).. (or |(and (bo|
|00000190| 75 6e 64 70 20 27 65 70 | 6f 63 68 3a 3a 76 65 72 |undp 'ep|och::ver|
|000001a0| 73 69 6f 6e 29 20 65 70 | 6f 63 68 3a 3a 76 65 72 |sion) ep|och::ver|
|000001b0| 73 69 6f 6e 29 0a 09 20 | 20 20 20 20 28 73 74 72 |sion).. | (str|
|000001c0| 69 6e 67 2d 6c 65 73 73 | 70 20 65 6d 61 63 73 2d |ing-less|p emacs-|
|000001d0| 76 65 72 73 69 6f 6e 20 | 22 32 30 22 29 29 29 0a |version |"20"))).|
|000001e0| 20 20 20 20 28 65 72 72 | 6f 72 20 22 60 68 69 70 | (err|or "`hip|
|000001f0| 70 69 65 2d 65 78 70 2e | 65 6c 27 20 77 61 73 20 |pie-exp.|el' was |
|00000200| 63 6f 6d 70 69 6c 65 64 | 20 66 6f 72 20 45 6d 61 |compiled| for Ema|
|00000210| 63 73 20 32 30 22 29 29 | 0a 0a 28 6f 72 20 28 62 |cs 20"))|..(or (b|
|00000220| 6f 75 6e 64 70 20 27 63 | 75 72 72 65 6e 74 2d 6c |oundp 'c|urrent-l|
|00000230| 6f 61 64 2d 6c 69 73 74 | 29 20 28 73 65 74 71 20 |oad-list|) (setq |
|00000240| 63 75 72 72 65 6e 74 2d | 6c 6f 61 64 2d 6c 69 73 |current-|load-lis|
|00000250| 74 20 6e 69 6c 29 29 0a | 0a 0a 28 62 79 74 65 2d |t nil)).|..(byte-|
|00000260| 63 6f 64 65 20 22 c0 c1 | 21 ac 82 c2 11 c1 0b 42 |code "..|!......B|
|00000270| 13 c0 c4 21 ac 83 c5 20 | 14 c4 0b 42 13 c0 c6 21 |...!... |...B...!|
|00000280| ac 84 c5 20 16 06 c6 0b | 42 13 c0 c7 21 ac 83 c8 |... ....|B...!...|
|00000290| 16 07 c7 0b 42 13 c0 c9 | 21 ac 83 c8 16 09 c9 0b |....B...|!.......|
|000002a0| 42 13 c0 ca 21 ac 83 c8 | 16 5c 6e ca 0b 42 13 c0 |B...!...|.\n..B..|
|000002b0| cb 21 ac 84 c5 20 16 0b | cb 0b 42 13 c0 cc 21 ac |.!... ..|..B...!.|
|000002c0| 83 c8 16 0c cc 0b 42 13 | c0 cd 21 ac 83 c8 16 0d |......B.|..!.....|
|000002d0| cd 0b 42 13 c0 ce 21 ac | 83 c8 16 0e ce 0b 42 13 |..B...!.|......B.|
|000002e0| c0 cf 21 ac 83 c8 16 0f | cf 0b 42 13 c0 d0 21 ac |..!.....|..B...!.|
|000002f0| 83 c8 16 10 d0 0b 42 13 | c8 87 22 20 5b 62 6f 75 |......B.|.." [bou|
|00000300| 6e 64 70 20 68 65 2d 6e | 75 6d 20 2d 31 20 63 75 |ndp he-n|um -1 cu|
|00000310| 72 72 65 6e 74 2d 6c 6f | 61 64 2d 6c 69 73 74 20 |rrent-lo|ad-list |
|00000320| 68 65 2d 73 74 72 69 6e | 67 2d 62 65 67 20 6d 61 |he-strin|g-beg ma|
|00000330| 6b 65 2d 6d 61 72 6b 65 | 72 20 68 65 2d 73 74 72 |ke-marke|r he-str|
|00000340| 69 6e 67 2d 65 6e 64 20 | 68 65 2d 73 65 61 72 63 |ing-end |he-searc|
|00000350| 68 2d 73 74 72 69 6e 67 | 20 6e 69 6c 20 68 65 2d |h-string| nil he-|
|00000360| 65 78 70 61 6e 64 2d 6c | 69 73 74 20 68 65 2d 74 |expand-l|ist he-t|
|00000370| 72 69 65 64 2d 74 61 62 | 6c 65 20 68 65 2d 73 65 |ried-tab|le he-se|
|00000380| 61 72 63 68 2d 6c 6f 63 | 20 68 65 2d 73 65 61 72 |arch-loc| he-sear|
|00000390| 63 68 2d 6c 6f 63 32 20 | 68 65 2d 73 65 61 72 63 |ch-loc2 |he-searc|
|000003a0| 68 2d 62 77 20 68 65 2d | 73 65 61 72 63 68 2d 62 |h-bw he-|search-b|
|000003b0| 75 66 73 20 68 65 2d 73 | 65 61 72 63 68 65 64 2d |ufs he-s|earched-|
|000003c0| 6e 2d 62 75 66 73 20 68 | 65 2d 73 65 61 72 63 68 |n-bufs h|e-search|
|000003d0| 2d 77 69 6e 64 6f 77 5d | 20 32 29 0a 23 40 31 37 |-window]| 2).#@17|
|000003e0| 34 20 54 68 65 20 6c 69 | 73 74 20 6f 66 20 65 78 |4 The li|st of ex|
|000003f0| 70 61 6e 73 69 6f 6e 20 | 66 75 6e 63 74 69 6f 6e |pansion |function|
|00000400| 73 20 74 72 69 65 64 20 | 69 6e 20 6f 72 64 65 72 |s tried |in order|
|00000410| 20 62 79 20 60 68 69 70 | 70 69 65 2d 65 78 70 61 | by `hip|pie-expa|
|00000420| 6e 64 27 2e 0a 54 6f 20 | 63 68 61 6e 67 65 20 74 |nd'..To |change t|
|00000430| 68 65 20 62 65 68 61 76 | 69 6f 72 20 6f 66 20 60 |he behav|ior of `|
|00000440| 68 69 70 70 69 65 2d 65 | 78 70 61 6e 64 27 2c 20 |hippie-e|xpand', |
|00000450| 72 65 6d 6f 76 65 2c 20 | 63 68 61 6e 67 65 20 74 |remove, |change t|
|00000460| 68 65 20 6f 72 64 65 72 | 20 6f 66 2c 0a 6f 72 20 |he order| of,.or |
|00000470| 69 6e 73 65 72 74 20 66 | 75 6e 63 74 69 6f 6e 73 |insert f|unctions|
|00000480| 20 69 6e 20 74 68 69 73 | 20 6c 69 73 74 2e 1f 0a | in this| list...|
|00000490| 28 64 65 66 76 61 72 20 | 68 69 70 70 69 65 2d 65 |(defvar |hippie-e|
|000004a0| 78 70 61 6e 64 2d 74 72 | 79 2d 66 75 6e 63 74 69 |xpand-tr|y-functi|
|000004b0| 6f 6e 73 2d 6c 69 73 74 | 20 27 28 74 72 79 2d 63 |ons-list| '(try-c|
|000004c0| 6f 6d 70 6c 65 74 65 2d | 66 69 6c 65 2d 6e 61 6d |omplete-|file-nam|
|000004d0| 65 2d 70 61 72 74 69 61 | 6c 6c 79 20 74 72 79 2d |e-partia|lly try-|
|000004e0| 63 6f 6d 70 6c 65 74 65 | 2d 66 69 6c 65 2d 6e 61 |complete|-file-na|
|000004f0| 6d 65 20 74 72 79 2d 65 | 78 70 61 6e 64 2d 61 6c |me try-e|xpand-al|
|00000500| 6c 2d 61 62 62 72 65 76 | 73 20 74 72 79 2d 65 78 |l-abbrev|s try-ex|
|00000510| 70 61 6e 64 2d 6c 69 73 | 74 20 74 72 79 2d 65 78 |pand-lis|t try-ex|
|00000520| 70 61 6e 64 2d 6c 69 6e | 65 20 74 72 79 2d 65 78 |pand-lin|e try-ex|
|00000530| 70 61 6e 64 2d 64 61 62 | 62 72 65 76 20 74 72 79 |pand-dab|brev try|
|00000540| 2d 65 78 70 61 6e 64 2d | 64 61 62 62 72 65 76 2d |-expand-|dabbrev-|
|00000550| 61 6c 6c 2d 62 75 66 66 | 65 72 73 20 74 72 79 2d |all-buff|ers try-|
|00000560| 65 78 70 61 6e 64 2d 64 | 61 62 62 72 65 76 2d 66 |expand-d|abbrev-f|
|00000570| 72 6f 6d 2d 6b 69 6c 6c | 20 74 72 79 2d 63 6f 6d |rom-kill| try-com|
|00000580| 70 6c 65 74 65 2d 6c 69 | 73 70 2d 73 79 6d 62 6f |plete-li|sp-symbo|
|00000590| 6c 2d 70 61 72 74 69 61 | 6c 6c 79 20 74 72 79 2d |l-partia|lly try-|
|000005a0| 63 6f 6d 70 6c 65 74 65 | 2d 6c 69 73 70 2d 73 79 |complete|-lisp-sy|
|000005b0| 6d 62 6f 6c 29 20 28 23 | 24 20 2e 20 39 39 34 29 |mbol) (#|$ . 994)|
|000005c0| 29 0a 23 40 36 38 20 2a | 4e 6f 6e 2d 6e 69 6c 20 |).#@68 *|Non-nil |
|000005d0| 6d 61 6b 65 73 20 60 68 | 69 70 70 69 65 2d 65 78 |makes `h|ippie-ex|
|000005e0| 70 61 6e 64 27 20 6f 75 | 74 70 75 74 20 77 68 69 |pand' ou|tput whi|
|000005f0| 63 68 20 66 75 6e 63 74 | 69 6f 6e 20 69 74 20 69 |ch funct|ion it i|
|00000600| 73 20 74 72 79 69 6e 67 | 2e 1f 0a 28 64 65 66 76 |s trying|...(defv|
|00000610| 61 72 20 68 69 70 70 69 | 65 2d 65 78 70 61 6e 64 |ar hippi|e-expand|
|00000620| 2d 76 65 72 62 6f 73 65 | 20 74 20 28 23 24 20 2e |-verbose| t (#$ .|
|00000630| 20 2d 31 34 37 39 29 29 | 0a 23 40 31 30 31 20 2a | -1479))|.#@101 *|
|00000640| 54 68 65 20 6d 61 78 69 | 6d 75 6d 20 6e 75 6d 62 |The maxi|mum numb|
|00000650| 65 72 20 6f 66 20 62 75 | 66 66 65 72 73 20 28 61 |er of bu|ffers (a|
|00000660| 70 61 72 74 20 66 72 6f | 6d 20 74 68 65 20 63 75 |part fro|m the cu|
|00000670| 72 72 65 6e 74 29 20 73 | 65 61 72 63 68 65 64 2e |rrent) s|earched.|
|00000680| 0a 49 66 20 6e 69 6c 2c | 20 61 6c 6c 20 62 75 66 |.If nil,| all buf|
|00000690| 66 65 72 73 20 61 72 65 | 20 73 65 61 72 63 68 65 |fers are| searche|
|000006a0| 64 2e 1f 0a 28 64 65 66 | 76 61 72 20 68 69 70 70 |d...(def|var hipp|
|000006b0| 69 65 2d 65 78 70 61 6e | 64 2d 6d 61 78 2d 62 75 |ie-expan|d-max-bu|
|000006c0| 66 66 65 72 73 20 6e 69 | 6c 20 28 23 24 20 2e 20 |ffers ni|l (#$ . |
|000006d0| 2d 31 35 39 39 29 29 0a | 23 40 31 35 33 20 2a 41 |-1599)).|#@153 *A|
|000006e0| 20 6c 69 73 74 20 73 70 | 65 63 69 66 79 69 6e 67 | list sp|ecifying|
|000006f0| 20 77 68 69 63 68 20 62 | 75 66 66 65 72 73 20 6e | which b|uffers n|
|00000700| 6f 74 20 74 6f 20 73 65 | 61 72 63 68 20 28 69 66 |ot to se|arch (if|
|00000710| 20 6e 6f 74 20 63 75 72 | 72 65 6e 74 29 2e 0a 43 | not cur|rent)..C|
|00000720| 61 6e 20 63 6f 6e 74 61 | 69 6e 20 62 6f 74 68 20 |an conta|in both |
|00000730| 72 65 67 65 78 70 73 20 | 6d 61 74 63 68 69 6e 67 |regexps |matching|
|00000740| 20 62 75 66 66 65 72 20 | 6e 61 6d 65 73 20 28 61 | buffer |names (a|
|00000750| 73 20 73 74 72 69 6e 67 | 73 29 20 61 6e 64 20 6d |s string|s) and m|
|00000760| 61 6a 6f 72 20 6d 6f 64 | 65 73 0a 28 61 73 20 61 |ajor mod|es.(as a|
|00000770| 74 6f 6d 73 29 1f 0a 28 | 64 65 66 76 61 72 20 68 |toms)..(|defvar h|
|00000780| 69 70 70 69 65 2d 65 78 | 70 61 6e 64 2d 69 67 6e |ippie-ex|pand-ign|
|00000790| 6f 72 65 2d 62 75 66 66 | 65 72 73 20 27 28 22 5e |ore-buff|ers '("^|
|000007a0| 20 5c 5c 2a 2e 2a 5c 5c | 2a 24 22 20 64 69 72 65 | \\*.*\\|*$" dire|
|000007b0| 64 2d 6d 6f 64 65 29 20 | 28 23 24 20 2e 20 2d 31 |d-mode) |(#$ . -1|
|000007c0| 37 35 38 29 29 0a 23 40 | 34 33 30 20 54 72 79 20 |758)).#@|430 Try |
|000007d0| 74 6f 20 65 78 70 61 6e | 64 20 74 65 78 74 20 62 |to expan|d text b|
|000007e0| 65 66 6f 72 65 20 70 6f | 69 6e 74 2c 20 75 73 69 |efore po|int, usi|
|000007f0| 6e 67 20 6d 75 6c 74 69 | 70 6c 65 20 6d 65 74 68 |ng multi|ple meth|
|00000800| 6f 64 73 2e 0a 54 68 65 | 20 65 78 70 61 6e 73 69 |ods..The| expansi|
|00000810| 6f 6e 20 66 75 6e 63 74 | 69 6f 6e 73 20 69 6e 20 |on funct|ions in |
|00000820| 60 68 69 70 70 69 65 2d | 65 78 70 61 6e 64 2d 74 |`hippie-|expand-t|
|00000830| 72 79 2d 66 75 6e 63 74 | 69 6f 6e 73 2d 6c 69 73 |ry-funct|ions-lis|
|00000840| 74 27 20 61 72 65 0a 74 | 72 69 65 64 20 69 6e 20 |t' are.t|ried in |
|00000850| 6f 72 64 65 72 2c 20 75 | 6e 74 69 6c 20 61 20 70 |order, u|ntil a p|
|00000860| 6f 73 73 69 62 6c 65 20 | 65 78 70 61 6e 73 69 6f |ossible |expansio|
|00000870| 6e 20 69 73 20 66 6f 75 | 6e 64 2e 20 20 52 65 70 |n is fou|nd. Rep|
|00000880| 65 61 74 65 64 0a 61 70 | 70 6c 69 63 61 74 69 6f |eated.ap|plicatio|
|00000890| 6e 20 6f 66 20 60 68 69 | 70 70 69 65 2d 65 78 70 |n of `hi|ppie-exp|
|000008a0| 61 6e 64 27 20 69 6e 73 | 65 72 74 73 20 73 75 63 |and' ins|erts suc|
|000008b0| 63 65 73 73 69 76 65 6c | 79 20 70 6f 73 73 69 62 |cessivel|y possib|
|000008c0| 6c 65 0a 65 78 70 61 6e | 73 69 6f 6e 73 2e 20 20 |le.expan|sions. |
|000008d0| 0a 57 69 74 68 20 61 20 | 70 6f 73 69 74 69 76 65 |.With a |positive|
|000008e0| 20 6e 75 6d 65 72 69 63 | 20 61 72 67 75 6d 65 6e | numeric| argumen|
|000008f0| 74 2c 20 6a 75 6d 70 73 | 20 64 69 72 65 63 74 6c |t, jumps| directl|
|00000900| 79 20 74 6f 20 74 68 65 | 20 41 52 47 20 6e 65 78 |y to the| ARG nex|
|00000910| 74 0a 66 75 6e 63 74 69 | 6f 6e 20 69 6e 20 74 68 |t.functi|on in th|
|00000920| 69 73 20 6c 69 73 74 2e | 20 20 57 69 74 68 20 61 |is list.| With a|
|00000930| 20 6e 65 67 61 74 69 76 | 65 20 61 72 67 75 6d 65 | negativ|e argume|
|00000940| 6e 74 20 6f 72 20 6a 75 | 73 74 20 5c 5b 75 6e 69 |nt or ju|st \[uni|
|00000950| 76 65 72 73 61 6c 2d 61 | 72 67 75 6d 65 6e 74 5d |versal-a|rgument]|
|00000960| 2c 20 0a 75 6e 64 6f 65 | 73 20 74 68 65 20 65 78 |, .undoe|s the ex|
|00000970| 70 61 6e 73 69 6f 6e 2e | 1f 0a 28 64 65 66 61 6c |pansion.|..(defal|
|00000980| 69 61 73 20 27 68 69 70 | 70 69 65 2d 65 78 70 61 |ias 'hip|pie-expa|
|00000990| 6e 64 20 23 5b 28 61 72 | 67 29 20 22 08 ab 89 08 |nd #[(ar|g) "....|
|000009a0| a8 ab ff 08 c1 56 ab fa | 5c 6e c3 55 ae 84 0c 0d |.....V..|\n.U....|
|000009b0| 6b 3f 89 1e 06 ab 85 c3 | 12 c7 16 08 08 ab 89 0e |k?......|........|
|000009c0| 06 ac 87 c9 20 88 aa 82 | c1 10 5c 6e 08 5c 5c c1 |.... ...|..\n.\\.|
|000009d0| 5d 89 1e 5c 6e 0e 0b 47 | 59 ac 96 cc 0e 5c 6e 0e |]..\n..G|Y....\n.|
|000009e0| 0b 38 5c 6e 0e 5c 6e 55 | 43 5c 22 ac 88 0e 5c 6e |.8\n.\nU|C\"...\n|
|000009f0| 54 89 16 5c 6e aa 64 0e | 5c 6e 12 29 5c 6e 0e 0b |T..\n.d.|\n.)\n..|
|00000a00| 47 59 ab 94 c3 12 0e 06 | ab 86 cd ce 21 88 aa 84 |GY......|....!...|
|00000a10| cd cf 21 88 d0 20 aa 94 | 0e 11 ad 90 d2 d3 20 21 |..!.. ..|...... !|
|00000a20| 3f ad 89 cd d4 d5 5c 6e | 0e 0b 38 21 5c 22 29 87 |?.....\n|..8!\").|
|00000a30| 5c 6e c1 59 ad 9b d6 0e | 17 21 70 61 ad 93 c3 12 |\n.Y....|.!pa....|
|00000a40| c9 20 88 0e 11 ad 8a d2 | d3 20 21 3f ad 83 cd d8 |. ......|. !?....|
|00000a50| 21 87 22 20 5b 61 72 67 | 20 30 20 68 65 2d 6e 75 |!." [arg| 0 he-nu|
|00000a60| 6d 20 2d 31 20 74 68 69 | 73 2d 63 6f 6d 6d 61 6e |m -1 thi|s-comman|
|00000a70| 64 20 6c 61 73 74 2d 63 | 6f 6d 6d 61 6e 64 20 66 |d last-c|ommand f|
|00000a80| 69 72 73 74 20 6e 69 6c | 20 68 65 2d 74 72 69 65 |irst nil| he-trie|
|00000a90| 64 2d 74 61 62 6c 65 20 | 68 65 2d 72 65 73 65 74 |d-table |he-reset|
|00000aa0| 2d 73 74 72 69 6e 67 20 | 69 20 68 69 70 70 69 65 |-string |i hippie|
|00000ab0| 2d 65 78 70 61 6e 64 2d | 74 72 79 2d 66 75 6e 63 |-expand-|try-func|
|00000ac0| 74 69 6f 6e 73 2d 6c 69 | 73 74 20 61 70 70 6c 79 |tions-li|st apply|
|00000ad0| 20 6d 65 73 73 61 67 65 | 20 22 4e 6f 20 65 78 70 | message| "No exp|
|00000ae0| 61 6e 73 69 6f 6e 20 66 | 6f 75 6e 64 22 20 22 4e |ansion f|ound" "N|
|00000af0| 6f 20 66 75 72 74 68 65 | 72 20 65 78 70 61 6e 73 |o furthe|r expans|
|00000b00| 69 6f 6e 73 20 66 6f 75 | 6e 64 22 20 64 69 6e 67 |ions fou|nd" ding|
|00000b10| 20 68 69 70 70 69 65 2d | 65 78 70 61 6e 64 2d 76 | hippie-|expand-v|
|00000b20| 65 72 62 6f 73 65 20 77 | 69 6e 64 6f 77 2d 6d 69 |erbose w|indow-mi|
|00000b30| 6e 69 62 75 66 66 65 72 | 2d 70 20 73 65 6c 65 63 |nibuffer|-p selec|
|00000b40| 74 65 64 2d 77 69 6e 64 | 6f 77 20 22 55 73 69 6e |ted-wind|ow "Usin|
|00000b50| 67 20 25 73 22 20 70 72 | 69 6e 31 2d 74 6f 2d 73 |g %s" pr|in1-to-s|
|00000b60| 74 72 69 6e 67 20 6d 61 | 72 6b 65 72 2d 62 75 66 |tring ma|rker-buf|
|00000b70| 66 65 72 20 68 65 2d 73 | 74 72 69 6e 67 2d 62 65 |fer he-s|tring-be|
|00000b80| 67 20 22 55 6e 64 6f 69 | 6e 67 20 65 78 70 61 6e |g "Undoi|ng expan|
|00000b90| 73 69 6f 6e 73 22 5d 20 | 36 20 28 23 24 20 2e 20 |sions"] |6 (#$ . |
|00000ba0| 31 39 39 36 29 20 22 50 | 22 5d 29 0a 28 64 65 66 |1996) "P|"]).(def|
|00000bb0| 61 6c 69 61 73 20 27 68 | 65 2d 69 6e 69 74 2d 73 |alias 'h|e-init-s|
|00000bc0| 74 72 69 6e 67 20 23 5b | 28 62 65 67 20 65 6e 64 |tring #[|(beg end|
|00000bd0| 29 20 22 08 09 c2 93 88 | 0b 0c c2 93 88 09 0c 7b |) ".....|.......{|
|00000be0| 89 15 87 22 20 5b 68 65 | 2d 73 74 72 69 6e 67 2d |..." [he|-string-|
|00000bf0| 62 65 67 20 62 65 67 20 | 6e 69 6c 20 68 65 2d 73 |beg beg |nil he-s|
|00000c00| 74 72 69 6e 67 2d 65 6e | 64 20 65 6e 64 20 68 65 |tring-en|d end he|
|00000c10| 2d 73 65 61 72 63 68 2d | 73 74 72 69 6e 67 5d 20 |-search-|string] |
|00000c20| 33 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 68 |3]).(def|alias 'h|
|00000c30| 65 2d 72 65 73 65 74 2d | 73 74 72 69 6e 67 20 23 |e-reset-|string #|
|00000c40| 5b 6e 69 6c 20 22 c0 20 | 19 5c 6e 62 88 0b 63 88 |[nil ". |.\nb..c.|
|00000c50| 60 0c 7c 88 09 62 29 87 | 22 20 5b 70 6f 69 6e 74 |`.|..b).|" [point|
|00000c60| 2d 6d 61 72 6b 65 72 20 | 6e 65 77 70 6f 73 20 68 |-marker |newpos h|
|00000c70| 65 2d 73 74 72 69 6e 67 | 2d 62 65 67 20 68 65 2d |e-string|-beg he-|
|00000c80| 73 65 61 72 63 68 2d 73 | 74 72 69 6e 67 20 68 65 |search-s|tring he|
|00000c90| 2d 73 74 72 69 6e 67 2d | 65 6e 64 5d 20 32 5d 29 |-string-|end] 2])|
|00000ca0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 68 65 2d 73 |.(defali|as 'he-s|
|00000cb0| 75 62 73 74 69 74 75 74 | 65 2d 73 74 72 69 6e 67 |ubstitut|e-string|
|00000cc0| 20 23 5b 28 73 74 72 20 | 26 6f 70 74 69 6f 6e 61 | #[(str |&optiona|
|00000cd0| 6c 20 74 72 61 6e 73 2d | 63 61 73 65 29 20 22 08 |l trans-|case) ".|
|00000ce0| ad 84 09 ad 81 5c 6e c3 | 20 c4 1d 1e 06 18 0e 07 |.....\n.| .......|
|00000cf0| 62 88 08 ab 88 c8 0e 09 | 0e 5c 6e 5c 22 aa 82 0e |b.......|.\n\"...|
|00000d00| 5c 6e 89 15 0e 0b 42 16 | 0b 0d 63 88 60 0e 0c 7c |\n....B.|..c.`..||
|00000d10| 88 0e 06 62 2b 87 22 20 | 5b 74 72 61 6e 73 2d 63 |...b+." |[trans-c|
|00000d20| 61 73 65 20 63 61 73 65 | 2d 72 65 70 6c 61 63 65 |ase case|-replace|
|00000d30| 20 63 61 73 65 2d 66 6f | 6c 64 2d 73 65 61 72 63 | case-fo|ld-searc|
|00000d40| 68 20 70 6f 69 6e 74 2d | 6d 61 72 6b 65 72 20 6e |h point-|marker n|
|00000d50| 69 6c 20 73 75 62 73 74 | 20 6e 65 77 70 6f 73 20 |il subst| newpos |
|00000d60| 68 65 2d 73 74 72 69 6e | 67 2d 62 65 67 20 68 65 |he-strin|g-beg he|
|00000d70| 2d 74 72 61 6e 73 66 65 | 72 2d 63 61 73 65 20 68 |-transfe|r-case h|
|00000d80| 65 2d 73 65 61 72 63 68 | 2d 73 74 72 69 6e 67 20 |e-search|-string |
|00000d90| 73 74 72 20 68 65 2d 74 | 72 69 65 64 2d 74 61 62 |str he-t|ried-tab|
|00000da0| 6c 65 20 68 65 2d 73 74 | 72 69 6e 67 2d 65 6e 64 |le he-st|ring-end|
|00000db0| 5d 20 34 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |] 4]).(d|efalias |
|00000dc0| 27 68 65 2d 63 61 70 69 | 74 61 6c 69 7a 65 2d 66 |'he-capi|talize-f|
|00000dd0| 69 72 73 74 20 23 5b 28 | 73 74 72 29 20 22 c0 20 |irst #[(|str) ". |
|00000de0| 19 c2 8e c3 c4 0d 5c 22 | ab 97 0d 97 c6 94 1e 07 |......\"|........|
|00000df0| 89 1e 08 0e 07 0d 0e 07 | 48 96 49 88 0e 08 2a aa |........|H.I...*.|
|00000e00| 81 0d 2a 87 22 20 5b 6d | 61 74 63 68 2d 64 61 74 |..*." [m|atch-dat|
|00000e10| 61 20 6d 61 74 63 68 2d | 64 61 74 61 20 28 28 73 |a match-|data ((s|
|00000e20| 74 6f 72 65 2d 6d 61 74 | 63 68 2d 64 61 74 61 20 |tore-mat|ch-data |
|00000e30| 6d 61 74 63 68 2d 64 61 | 74 61 29 29 20 73 74 72 |match-da|ta)) str|
|00000e40| 69 6e 67 2d 6d 61 74 63 | 68 20 22 5c 5c 53 77 2a |ing-matc|h "\\Sw*|
|00000e50| 5c 5c 28 5c 5c 73 77 5c | 5c 29 2e 2a 22 20 73 74 |\\(\\sw\|\).*" st|
|00000e60| 72 20 31 20 6e 6f 20 72 | 65 73 5d 20 35 5d 29 0a |r 1 no r|es] 5]).|
|00000e70| 28 64 65 66 61 6c 69 61 | 73 20 27 68 65 2d 6f 72 |(defalia|s 'he-or|
|00000e80| 64 69 6e 61 72 79 2d 63 | 61 73 65 2d 70 20 23 5b |dinary-c|ase-p #[|
|00000e90| 28 73 74 72 29 20 22 08 | 89 97 98 ae 92 08 89 96 |(str) ".|........|
|00000ea0| 98 ae 8c 08 c1 08 21 98 | ae 85 08 c2 08 21 98 87 |......!.|.....!..|
|00000eb0| 22 20 5b 73 74 72 20 63 | 61 70 69 74 61 6c 69 7a |" [str c|apitaliz|
|00000ec0| 65 20 68 65 2d 63 61 70 | 69 74 61 6c 69 7a 65 2d |e he-cap|italize-|
|00000ed0| 66 69 72 73 74 5d 20 33 | 5d 29 0a 28 64 65 66 61 |first] 3|]).(defa|
|00000ee0| 6c 69 61 73 20 27 68 65 | 2d 74 72 61 6e 73 66 65 |lias 'he|-transfe|
|00000ef0| 72 2d 63 61 73 65 20 23 | 5b 28 66 72 6f 6d 2d 73 |r-case #|[(from-s|
|00000f00| 74 72 20 74 6f 2d 73 74 | 72 29 20 22 08 09 c2 08 |tr to-st|r) "....|
|00000f10| 47 09 47 5e 4f 98 ab 82 | 09 87 c3 09 21 ac 82 09 |G.G^O...|....!...|
|00000f20| 87 08 89 97 98 ab 83 09 | 97 87 08 89 96 98 ab 83 |........|........|
|00000f30| 09 96 87 08 c4 08 21 98 | ab 84 c4 09 21 87 08 c5 |......!.|....!...|
|00000f40| 08 21 98 ab 84 c5 09 21 | 87 09 87 22 20 5b 66 72 |.!.....!|..." [fr|
|00000f50| 6f 6d 2d 73 74 72 20 74 | 6f 2d 73 74 72 20 30 20 |om-str t|o-str 0 |
|00000f60| 68 65 2d 6f 72 64 69 6e | 61 72 79 2d 63 61 73 65 |he-ordin|ary-case|
|00000f70| 2d 70 20 68 65 2d 63 61 | 70 69 74 61 6c 69 7a 65 |-p he-ca|pitalize|
|00000f80| 2d 66 69 72 73 74 20 63 | 61 70 69 74 61 6c 69 7a |-first c|apitaliz|
|00000f90| 65 5d 20 35 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |e] 5]).(|defalias|
|00000fa0| 20 27 68 65 2d 73 74 72 | 69 6e 67 2d 6d 65 6d 62 | 'he-str|ing-memb|
|00000fb0| 65 72 20 23 5b 28 73 74 | 72 20 6c 73 74 20 26 6f |er #[(st|r lst &o|
|00000fc0| 70 74 69 6f 6e 61 6c 20 | 74 72 61 6e 73 2d 63 61 |ptional |trans-ca|
|00000fd0| 73 65 29 20 22 08 ad 93 | 09 ab 8c 5c 6e ab 89 0b |se) "...|...\n...|
|00000fe0| ab 86 c4 0d 08 5c 22 aa | 81 08 0e 06 b6 87 22 20 |.....\".|......" |
|00000ff0| 5b 73 74 72 20 74 72 61 | 6e 73 2d 63 61 73 65 20 |[str tra|ns-case |
|00001000| 63 61 73 65 2d 72 65 70 | 6c 61 63 65 20 63 61 73 |case-rep|lace cas|
|00001010| 65 2d 66 6f 6c 64 2d 73 | 65 61 72 63 68 20 68 65 |e-fold-s|earch he|
|00001020| 2d 74 72 61 6e 73 66 65 | 72 2d 63 61 73 65 20 68 |-transfe|r-case h|
|00001030| 65 2d 73 65 61 72 63 68 | 2d 73 74 72 69 6e 67 20 |e-search|-string |
|00001040| 6c 73 74 5d 20 33 5d 29 | 0a 28 64 65 66 61 6c 69 |lst] 3])|.(defali|
|00001050| 61 73 20 27 68 65 2d 72 | 65 67 65 78 70 2d 6d 65 |as 'he-r|egexp-me|
|00001060| 6d 62 65 72 20 23 5b 28 | 73 74 72 20 6c 73 74 29 |mber #[(|str lst)|
|00001070| 20 22 08 ab 92 08 40 3b | ab 87 c1 08 40 5c 6e 5c | "....@;|....@\n\|
|00001080| 22 ac 86 08 41 89 10 ac | 6e 08 87 22 20 5b 6c 73 |"...A...|n.." [ls|
|00001090| 74 20 73 74 72 69 6e 67 | 2d 6d 61 74 63 68 20 73 |t string|-match s|
|000010a0| 74 72 5d 20 34 5d 29 0a | 23 40 31 37 32 20 43 6f |tr] 4]).|#@172 Co|
|000010b0| 6e 73 74 72 75 63 74 20 | 61 20 66 75 6e 63 74 69 |nstruct |a functi|
|000010c0| 6f 6e 20 73 69 6d 69 6c | 61 72 20 74 6f 20 60 68 |on simil|ar to `h|
|000010d0| 69 70 70 69 65 2d 65 78 | 70 61 6e 64 27 2e 0a 4d |ippie-ex|pand'..M|
|000010e0| 61 6b 65 20 69 74 20 75 | 73 65 20 74 68 65 20 65 |ake it u|se the e|
|000010f0| 78 70 61 6e 73 69 6f 6e | 20 66 75 6e 63 74 69 6f |xpansion| functio|
|00001100| 6e 73 20 69 6e 20 54 52 | 59 2d 4c 49 53 54 2e 20 |ns in TR|Y-LIST. |
|00001110| 20 41 6e 20 6f 70 74 69 | 6f 6e 61 6c 20 73 65 63 | An opti|onal sec|
|00001120| 6f 6e 64 0a 61 72 67 75 | 6d 65 6e 74 20 56 45 52 |ond.argu|ment VER|
|00001130| 42 4f 53 45 20 6e 6f 6e | 2d 6e 69 6c 20 6d 61 6b |BOSE non|-nil mak|
|00001140| 65 73 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 20 |es the f|unction |
|00001150| 76 65 72 62 6f 73 65 2e | 1f 0a 28 64 65 66 61 6c |verbose.|..(defal|
|00001160| 69 61 73 20 27 6d 61 6b | 65 2d 68 69 70 70 69 65 |ias 'mak|e-hippie|
|00001170| 2d 65 78 70 61 6e 64 2d | 66 75 6e 63 74 69 6f 6e |-expand-|function|
|00001180| 20 27 28 6d 61 63 72 6f | 20 2e 20 23 5b 28 74 72 | '(macro| . #[(tr|
|00001190| 79 2d 6c 69 73 74 20 26 | 6f 70 74 69 6f 6e 61 6c |y-list &|optional|
|000011a0| 20 76 65 72 62 6f 73 65 | 29 20 22 c0 c1 c2 c3 c4 | verbose|) ".....|
|000011b0| c5 c6 0e 07 21 c8 23 50 | c9 ca cb 0e 07 44 cc 0e |....!.#P|.....D..|
|000011c0| 0d 44 44 ce 42 42 af 05 | 44 87 22 20 5b 66 75 6e |.DD.BB..|D." [fun|
|000011d0| 63 74 69 6f 6e 20 6c 61 | 6d 62 64 61 20 28 61 72 |ction la|mbda (ar|
|000011e0| 67 29 20 22 54 72 79 20 | 74 6f 20 65 78 70 61 6e |g) "Try |to expan|
|000011f0| 64 20 74 65 78 74 20 62 | 65 66 6f 72 65 20 70 6f |d text b|efore po|
|00001200| 69 6e 74 2c 20 75 73 69 | 6e 67 20 74 68 65 20 66 |int, usi|ng the f|
|00001210| 6f 6c 6c 6f 77 69 6e 67 | 20 66 75 6e 63 74 69 6f |ollowing| functio|
|00001220| 6e 73 3a 20 5c 6e 22 20 | 6d 61 70 63 6f 6e 63 61 |ns: \n" |mapconca|
|00001230| 74 20 70 72 69 6e 31 2d | 74 6f 2d 73 74 72 69 6e |t prin1-|to-strin|
|00001240| 67 20 65 76 61 6c 20 74 | 72 79 2d 6c 69 73 74 20 |g eval t|ry-list |
|00001250| 22 2c 20 22 20 28 69 6e | 74 65 72 61 63 74 69 76 |", " (in|teractiv|
|00001260| 65 20 22 50 22 29 20 6c | 65 74 20 68 69 70 70 69 |e "P") l|et hippi|
|00001270| 65 2d 65 78 70 61 6e 64 | 2d 74 72 79 2d 66 75 6e |e-expand|-try-fun|
|00001280| 63 74 69 6f 6e 73 2d 6c | 69 73 74 20 68 69 70 70 |ctions-l|ist hipp|
|00001290| 69 65 2d 65 78 70 61 6e | 64 2d 76 65 72 62 6f 73 |ie-expan|d-verbos|
|000012a0| 65 20 76 65 72 62 6f 73 | 65 20 28 28 68 69 70 70 |e verbos|e ((hipp|
|000012b0| 69 65 2d 65 78 70 61 6e | 64 20 61 72 67 29 29 5d |ie-expan|d arg))]|
|000012c0| 20 39 20 28 23 24 20 2e | 20 34 32 37 30 29 5d 29 | 9 (#$ .| 4270)])|
|000012d0| 29 0a 23 40 32 34 33 20 | 54 72 79 20 74 6f 20 63 |).#@243 |Try to c|
|000012e0| 6f 6d 70 6c 65 74 65 20 | 74 65 78 74 20 61 73 20 |omplete |text as |
|000012f0| 61 20 66 69 6c 65 20 6e | 61 6d 65 2e 0a 54 68 65 |a file n|ame..The|
|00001300| 20 61 72 67 75 6d 65 6e | 74 20 4f 4c 44 20 68 61 | argumen|t OLD ha|
|00001310| 73 20 74 6f 20 62 65 20 | 6e 69 6c 20 74 68 65 20 |s to be |nil the |
|00001320| 66 69 72 73 74 20 63 61 | 6c 6c 20 6f 66 20 74 68 |first ca|ll of th|
|00001330| 69 73 20 66 75 6e 63 74 | 69 6f 6e 2c 20 61 6e 64 |is funct|ion, and|
|00001340| 20 74 0a 66 6f 72 20 73 | 75 62 73 65 71 75 65 6e | t.for s|ubsequen|
|00001350| 74 20 63 61 6c 6c 73 20 | 28 66 6f 72 20 66 75 72 |t calls |(for fur|
|00001360| 74 68 65 72 20 70 6f 73 | 73 69 62 6c 65 20 63 6f |ther pos|sible co|
|00001370| 6d 70 6c 65 74 69 6f 6e | 73 20 6f 66 20 74 68 65 |mpletion|s of the|
|00001380| 20 73 61 6d 65 0a 73 74 | 72 69 6e 67 29 2e 20 20 | same.st|ring). |
|00001390| 49 74 20 72 65 74 75 72 | 6e 73 20 74 20 69 66 20 |It retur|ns t if |
|000013a0| 61 20 6e 65 77 20 63 6f | 6d 70 6c 65 74 69 6f 6e |a new co|mpletion|
|000013b0| 20 69 73 20 66 6f 75 6e | 64 2c 20 6e 69 6c 20 6f | is foun|d, nil o|
|000013c0| 74 68 65 72 77 69 73 65 | 2e 1f 0a 28 64 65 66 61 |therwise|...(defa|
|000013d0| 6c 69 61 73 20 27 74 72 | 79 2d 63 6f 6d 70 6c 65 |lias 'tr|y-comple|
|000013e0| 74 65 2d 66 69 6c 65 2d | 6e 61 6d 65 20 23 5b 28 |te-file-|name #[(|
|000013f0| 6f 6c 64 29 20 22 08 ac | c0 c1 c2 20 60 5c 22 88 |old) "..|... `\".|
|00001400| c3 0c 21 c5 c6 0c 21 ae | 81 c7 21 1e 08 1e 09 ca |..!...!.|..!.....|
|00001410| 0e 09 0e 0b 5c 22 ac 87 | 0e 09 0e 0b 42 16 0b 0c |....\"..|....B...|
|00001420| c7 6b ac 93 cc 0e 08 21 | ab 8d cd ce 0e 09 0e 08 |.k.....!|........|
|00001430| 5c 22 cf 5c 22 16 10 aa | 83 d1 16 10 2a 0e 10 ab |\".\"...|....*...|
|00001440| 91 ca 0e 10 40 0e 0b 5c | 22 ab 88 0e 10 41 89 16 |....@..\|"....A..|
|00001450| 10 ac 6f 0e 10 ac 88 08 | ab 83 d2 20 88 d1 87 d3 |..o.....|... ....|
|00001460| c6 0c 21 0e 10 40 5c 22 | 1e 14 d5 0e 14 21 88 0e |..!..@\"|.....!..|
|00001470| 10 40 0e 0b 41 42 16 0b | 0e 10 41 16 10 29 d6 87 |.@..AB..|..A..)..|
|00001480| 22 20 5b 6f 6c 64 20 68 | 65 2d 69 6e 69 74 2d 73 |" [old h|e-init-s|
|00001490| 74 72 69 6e 67 20 68 65 | 2d 66 69 6c 65 2d 6e 61 |tring he|-file-na|
|000014a0| 6d 65 2d 62 65 67 20 68 | 65 2d 66 69 6c 65 2d 6e |me-beg h|e-file-n|
|000014b0| 61 6d 65 2d 6e 6f 6e 64 | 69 72 65 63 74 6f 72 79 |ame-nond|irectory|
|000014c0| 20 68 65 2d 73 65 61 72 | 63 68 2d 73 74 72 69 6e | he-sear|ch-strin|
|000014d0| 67 20 65 78 70 61 6e 64 | 2d 66 69 6c 65 2d 6e 61 |g expand|-file-na|
|000014e0| 6d 65 20 68 65 2d 66 69 | 6c 65 2d 6e 61 6d 65 2d |me he-fi|le-name-|
|000014f0| 64 69 72 65 63 74 6f 72 | 79 20 22 22 20 64 69 72 |director|y "" dir|
|00001500| 2d 70 61 72 74 20 6e 61 | 6d 65 2d 70 61 72 74 20 |-part na|me-part |
|00001510| 68 65 2d 73 74 72 69 6e | 67 2d 6d 65 6d 62 65 72 |he-strin|g-member|
|00001520| 20 68 65 2d 74 72 69 65 | 64 2d 74 61 62 6c 65 20 | he-trie|d-table |
|00001530| 68 65 2d 66 69 6c 65 2d | 64 69 72 65 63 74 6f 72 |he-file-|director|
|00001540| 79 2d 70 20 73 6f 72 74 | 20 66 69 6c 65 2d 6e 61 |y-p sort| file-na|
|00001550| 6d 65 2d 61 6c 6c 2d 63 | 6f 6d 70 6c 65 74 69 6f |me-all-c|ompletio|
|00001560| 6e 73 20 73 74 72 69 6e | 67 2d 6c 65 73 73 70 20 |ns strin|g-lessp |
|00001570| 68 65 2d 65 78 70 61 6e | 64 2d 6c 69 73 74 20 6e |he-expan|d-list n|
|00001580| 69 6c 20 68 65 2d 72 65 | 73 65 74 2d 73 74 72 69 |il he-re|set-stri|
|00001590| 6e 67 20 68 65 2d 63 6f | 6e 63 61 74 2d 64 69 72 |ng he-co|ncat-dir|
|000015a0| 65 63 74 6f 72 79 2d 66 | 69 6c 65 2d 6e 61 6d 65 |ectory-f|ile-name|
|000015b0| 20 66 69 6c 65 6e 61 6d | 65 20 68 65 2d 73 75 62 | filenam|e he-sub|
|000015c0| 73 74 69 74 75 74 65 2d | 73 74 72 69 6e 67 20 74 |stitute-|string t|
|000015d0| 5d 20 35 20 28 23 24 20 | 2e 20 34 38 32 34 29 5d |] 5 (#$ |. 4824)]|
|000015e0| 29 0a 23 40 32 31 34 20 | 54 72 79 20 74 6f 20 63 |).#@214 |Try to c|
|000015f0| 6f 6d 70 6c 65 74 65 20 | 74 65 78 74 20 61 73 20 |omplete |text as |
|00001600| 61 20 66 69 6c 65 20 6e | 61 6d 65 2c 20 61 73 20 |a file n|ame, as |
|00001610| 6d 61 6e 79 20 63 68 61 | 72 61 63 74 65 72 73 20 |many cha|racters |
|00001620| 61 73 20 75 6e 69 71 75 | 65 2e 0a 54 68 65 20 61 |as uniqu|e..The a|
|00001630| 72 67 75 6d 65 6e 74 20 | 4f 4c 44 20 68 61 73 20 |rgument |OLD has |
|00001640| 74 6f 20 62 65 20 6e 69 | 6c 20 74 68 65 20 66 69 |to be ni|l the fi|
|00001650| 72 73 74 20 63 61 6c 6c | 20 6f 66 20 74 68 69 73 |rst call| of this|
|00001660| 20 66 75 6e 63 74 69 6f | 6e 2e 20 20 49 74 0a 72 | functio|n. It.r|
|00001670| 65 74 75 72 6e 73 20 74 | 20 69 66 20 61 20 75 6e |eturns t| if a un|
|00001680| 69 71 75 65 2c 20 70 6f | 73 73 69 62 6c 79 20 70 |ique, po|ssibly p|
|00001690| 61 72 74 69 61 6c 2c 20 | 63 6f 6d 70 6c 65 74 69 |artial, |completi|
|000016a0| 6f 6e 20 69 73 20 66 6f | 75 6e 64 2c 20 6e 69 6c |on is fo|und, nil|
|000016b0| 20 0a 6f 74 68 65 72 77 | 69 73 65 2e 1f 0a 28 64 | .otherw|ise...(d|
|000016c0| 65 66 61 6c 69 61 73 20 | 27 74 72 79 2d 63 6f 6d |efalias |'try-com|
|000016d0| 70 6c 65 74 65 2d 66 69 | 6c 65 2d 6e 61 6d 65 2d |plete-fi|le-name-|
|000016e0| 70 61 72 74 69 61 6c 6c | 79 20 23 5b 28 6f 6c 64 |partiall|y #[(old|
|000016f0| 29 20 22 c0 19 5c 6e ac | bf c3 c4 20 60 5c 22 88 |) "..\n.|... `\".|
|00001700| c5 0e 06 21 c7 c8 0e 06 | 21 ae 81 c9 21 1e 5c 6e |...!....|!...!.\n|
|00001710| 1e 0b 0e 06 c9 6b ac 8d | cc 0e 5c 6e 21 ab 87 cd |.....k..|..\n!...|
|00001720| 0e 0b 0e 5c 6e 5c 22 11 | 09 ce 61 ac 8d 09 0e 0b |...\n\".|..a.....|
|00001730| 98 ac 87 cf 09 0e 10 5c | 22 ab 82 c0 11 2a 09 ac |.......\|"....*..|
|00001740| 89 5c 6e ab 83 d1 20 88 | c0 aa 97 d2 c8 0e 06 21 |.\n... .|.......!|
|00001750| 09 5c 22 1e 13 d4 0e 13 | 21 88 09 0e 10 41 42 16 |.\".....|!....AB.|
|00001760| 10 29 ce 29 87 22 20 5b | 6e 69 6c 20 65 78 70 61 |.).)." [|nil expa|
|00001770| 6e 73 69 6f 6e 20 6f 6c | 64 20 68 65 2d 69 6e 69 |nsion ol|d he-ini|
|00001780| 74 2d 73 74 72 69 6e 67 | 20 68 65 2d 66 69 6c 65 |t-string| he-file|
|00001790| 2d 6e 61 6d 65 2d 62 65 | 67 20 68 65 2d 66 69 6c |-name-be|g he-fil|
|000017a0| 65 2d 6e 61 6d 65 2d 6e | 6f 6e 64 69 72 65 63 74 |e-name-n|ondirect|
|000017b0| 6f 72 79 20 68 65 2d 73 | 65 61 72 63 68 2d 73 74 |ory he-s|earch-st|
|000017c0| 72 69 6e 67 20 65 78 70 | 61 6e 64 2d 66 69 6c 65 |ring exp|and-file|
|000017d0| 2d 6e 61 6d 65 20 68 65 | 2d 66 69 6c 65 2d 6e 61 |-name he|-file-na|
|000017e0| 6d 65 2d 64 69 72 65 63 | 74 6f 72 79 20 22 22 20 |me-direc|tory "" |
|000017f0| 64 69 72 2d 70 61 72 74 | 20 6e 61 6d 65 2d 70 61 |dir-part| name-pa|
|00001800| 72 74 20 68 65 2d 66 69 | 6c 65 2d 64 69 72 65 63 |rt he-fi|le-direc|
|00001810| 74 6f 72 79 2d 70 20 66 | 69 6c 65 2d 6e 61 6d 65 |tory-p f|ile-name|
|00001820| 2d 63 6f 6d 70 6c 65 74 | 69 6f 6e 20 74 20 68 65 |-complet|ion t he|
|00001830| 2d 73 74 72 69 6e 67 2d | 6d 65 6d 62 65 72 20 68 |-string-|member h|
|00001840| 65 2d 74 72 69 65 64 2d | 74 61 62 6c 65 20 68 65 |e-tried-|table he|
|00001850| 2d 72 65 73 65 74 2d 73 | 74 72 69 6e 67 20 68 65 |-reset-s|tring he|
|00001860| 2d 63 6f 6e 63 61 74 2d | 64 69 72 65 63 74 6f 72 |-concat-|director|
|00001870| 79 2d 66 69 6c 65 2d 6e | 61 6d 65 20 66 69 6c 65 |y-file-n|ame file|
|00001880| 6e 61 6d 65 20 68 65 2d | 73 75 62 73 74 69 74 75 |name he-|substitu|
|00001890| 74 65 2d 73 74 72 69 6e | 67 5d 20 34 20 28 23 24 |te-strin|g] 4 (#$|
|000018a0| 20 2e 20 35 36 30 38 29 | 5d 29 0a 23 40 36 35 20 | . 5608)|]).#@65 |
|000018b0| 43 68 61 72 61 63 74 65 | 72 73 20 74 68 61 74 20 |Characte|rs that |
|000018c0| 61 72 65 20 63 6f 6e 73 | 69 64 65 72 65 64 20 70 |are cons|idered p|
|000018d0| 61 72 74 20 6f 66 20 74 | 68 65 20 66 69 6c 65 20 |art of t|he file |
|000018e0| 6e 61 6d 65 20 74 6f 20 | 65 78 70 61 6e 64 2e 1f |name to |expand..|
|000018f0| 0a 28 64 65 66 76 61 72 | 20 68 65 2d 66 69 6c 65 |.(defvar| he-file|
|00001900| 2d 6e 61 6d 65 2d 63 68 | 61 72 73 20 28 62 79 74 |-name-ch|ars (byt|
|00001910| 65 2d 63 6f 64 65 20 22 | 08 c1 73 ab 82 c2 87 08 |e-code "|..s.....|
|00001920| c3 73 ab 82 c4 87 c5 87 | 22 20 5b 73 79 73 74 65 |.s......|" [syste|
|00001930| 6d 2d 74 79 70 65 20 28 | 76 61 78 2d 76 6d 73 20 |m-type (|vax-vms |
|00001940| 61 78 70 2d 76 6d 73 29 | 20 22 2d 61 2d 7a 41 2d |axp-vms)| "-a-zA-|
|00001950| 5a 30 2d 39 5f 2f 2e 2c | 7e 5e 23 24 2b 3d 3a 5c |Z0-9_/.,|~^#$+=:\|
|00001960| 5c 5b 5c 5c 5d 22 20 28 | 6d 73 2d 64 6f 73 20 77 |\[\\]" (|ms-dos w|
|00001970| 69 6e 64 6f 77 73 2d 6e | 74 29 20 22 2d 61 2d 7a |indows-n|t) "-a-z|
|00001980| 41 2d 5a 30 2d 39 5f 2f | 2e 2c 7e 5e 23 24 2b 3d |A-Z0-9_/|.,~^#$+=|
|00001990| 3a 5c 5c 5c 5c 22 20 22 | 2d 61 2d 7a 41 2d 5a 30 |:\\\\" "|-a-zA-Z0|
|000019a0| 2d 39 5f 2f 2e 2c 7e 5e | 23 24 2b 3d 22 5d 20 32 |-9_/.,~^|#$+="] 2|
|000019b0| 29 20 28 23 24 20 2e 20 | 36 33 32 30 29 29 0a 28 |) (#$ . |6320)).(|
|000019c0| 64 65 66 61 6c 69 61 73 | 20 27 68 65 2d 66 69 6c |defalias| 'he-fil|
|000019d0| 65 2d 6e 61 6d 65 2d 62 | 65 67 20 23 5b 6e 69 6c |e-name-b|eg #[nil|
|000019e0| 20 22 8a 08 c1 78 88 60 | 29 87 22 20 5b 68 65 2d | "...x.`|)." [he-|
|000019f0| 66 69 6c 65 2d 6e 61 6d | 65 2d 63 68 61 72 73 20 |file-nam|e-chars |
|00001a00| 6e 69 6c 5d 20 32 5d 29 | 0a 23 40 37 32 20 46 69 |nil] 2])|.#@72 Fi|
|00001a10| 78 20 74 6f 20 6d 61 6b | 65 20 60 66 69 6c 65 2d |x to mak|e `file-|
|00001a20| 6e 61 6d 65 2d 6e 6f 6e | 64 69 72 65 63 74 6f 72 |name-non|director|
|00001a30| 79 27 20 77 6f 72 6b 20 | 66 6f 72 20 68 69 70 70 |y' work |for hipp|
|00001a40| 69 65 2d 65 78 70 61 6e | 64 20 75 6e 64 65 72 20 |ie-expan|d under |
|00001a50| 56 4d 53 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |VMS...(d|efalias |
|00001a60| 27 68 65 2d 66 69 6c 65 | 2d 6e 61 6d 65 2d 6e 6f |'he-file|-name-no|
|00001a70| 6e 64 69 72 65 63 74 6f | 72 79 20 23 5b 28 66 69 |ndirecto|ry #[(fi|
|00001a80| 6c 65 29 20 22 08 c1 73 | ab 97 c2 0b 21 1c c5 c6 |le) "..s|....!...|
|00001a90| 0c 5c 22 ab 8a c7 0c c8 | 94 c8 95 4f 50 aa 81 0c |.\".....|...OP...|
|00001aa0| 29 87 c2 0b 21 87 22 20 | 5b 73 79 73 74 65 6d 2d |)...!." |[system-|
|00001ab0| 74 79 70 65 20 28 61 78 | 70 2d 76 6d 73 20 76 61 |type (ax|p-vms va|
|00001ac0| 78 2d 76 6d 73 29 20 66 | 69 6c 65 2d 6e 61 6d 65 |x-vms) f|ile-name|
|00001ad0| 2d 6e 6f 6e 64 69 72 65 | 63 74 6f 72 79 20 66 69 |-nondire|ctory fi|
|00001ae0| 6c 65 20 6e 20 73 74 72 | 69 6e 67 2d 6d 61 74 63 |le n str|ing-matc|
|00001af0| 68 20 22 5e 5c 5c 28 5c | 5c 5b 2e 2a 5c 5c 29 5c |h "^\\(\|\[.*\\)\|
|00001b00| 5c 2e 5c 5c 28 5b 5e 5c | 5c 2e 5d 2a 5c 5c 29 24 |\.\\([^\|\.]*\\)$|
|00001b10| 22 20 22 5b 2e 22 20 32 | 5d 20 34 20 28 23 24 20 |" "[." 2|] 4 (#$ |
|00001b20| 2e 20 36 36 37 30 29 5d | 29 0a 23 40 36 39 20 46 |. 6670)]|).#@69 F|
|00001b30| 69 78 20 74 6f 20 6d 61 | 6b 65 20 60 66 69 6c 65 |ix to ma|ke `file|
|00001b40| 2d 6e 61 6d 65 2d 64 69 | 72 65 63 74 6f 72 79 27 |-name-di|rectory'|
|00001b50| 20 77 6f 72 6b 20 66 6f | 72 20 68 69 70 70 69 65 | work fo|r hippie|
|00001b60| 2d 65 78 70 61 6e 64 20 | 75 6e 64 65 72 20 56 4d |-expand |under VM|
|00001b70| 53 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 68 |S...(def|alias 'h|
|00001b80| 65 2d 66 69 6c 65 2d 6e | 61 6d 65 2d 64 69 72 65 |e-file-n|ame-dire|
|00001b90| 63 74 6f 72 79 20 23 5b | 28 66 69 6c 65 29 20 22 |ctory #[|(file) "|
|00001ba0| 08 c1 73 ab 9f c2 0b 21 | c4 0b 21 1d 1e 06 c7 c8 |..s....!|..!.....|
|00001bb0| 0e 06 5c 22 ab 8c 0d 0e | 06 c9 94 c9 95 4f ca 51 |..\"....|.....O.Q|
|00001bc0| aa 81 0d 2a 87 c4 0b 21 | 87 22 20 5b 73 79 73 74 |...*...!|." [syst|
|00001bd0| 65 6d 2d 74 79 70 65 20 | 28 61 78 70 2d 76 6d 73 |em-type |(axp-vms|
|00001be0| 20 76 61 78 2d 76 6d 73 | 29 20 66 69 6c 65 2d 6e | vax-vms|) file-n|
|00001bf0| 61 6d 65 2d 6e 6f 6e 64 | 69 72 65 63 74 6f 72 79 |ame-nond|irectory|
|00001c00| 20 66 69 6c 65 20 66 69 | 6c 65 2d 6e 61 6d 65 2d | file fi|le-name-|
|00001c10| 64 69 72 65 63 74 6f 72 | 79 20 64 20 6e 20 73 74 |director|y d n st|
|00001c20| 72 69 6e 67 2d 6d 61 74 | 63 68 20 22 5e 5c 5c 28 |ring-mat|ch "^\\(|
|00001c30| 5c 5c 5b 2e 2a 5c 5c 29 | 5c 5c 2e 5c 5c 28 5b 5e |\\[.*\\)|\\.\\([^|
|00001c40| 5c 5c 2e 5d 2a 5c 5c 29 | 24 22 20 31 20 22 5d 22 |\\.]*\\)|$" 1 "]"|
|00001c50| 5d 20 34 20 28 23 24 20 | 2e 20 36 39 35 39 29 5d |] 4 (#$ |. 6959)]|
|00001c60| 29 0a 23 40 36 36 20 46 | 69 78 20 74 6f 20 6d 61 |).#@66 F|ix to ma|
|00001c70| 6b 65 20 60 66 69 6c 65 | 2d 64 69 72 65 63 74 6f |ke `file|-directo|
|00001c80| 72 79 2d 70 27 20 77 6f | 72 6b 20 66 6f 72 20 68 |ry-p' wo|rk for h|
|00001c90| 69 70 70 69 65 2d 65 78 | 70 61 6e 64 20 75 6e 64 |ippie-ex|pand und|
|00001ca0| 65 72 20 56 4d 53 2e 1f | 0a 28 64 65 66 61 6c 69 |er VMS..|.(defali|
|00001cb0| 61 73 20 27 68 65 2d 66 | 69 6c 65 2d 64 69 72 65 |as 'he-f|ile-dire|
|00001cc0| 63 74 6f 72 79 2d 70 20 | 23 5b 28 66 69 6c 65 29 |ctory-p |#[(file)|
|00001cd0| 20 22 08 c1 73 ab 8b c2 | 0b 21 ae 89 c2 0b c4 50 | "..s...|.!.....P|
|00001ce0| 21 87 c2 0b 21 87 22 20 | 5b 73 79 73 74 65 6d 2d |!...!." |[system-|
|00001cf0| 74 79 70 65 20 28 76 61 | 78 2d 76 6d 73 20 61 78 |type (va|x-vms ax|
|00001d00| 70 2d 76 6d 73 29 20 66 | 69 6c 65 2d 64 69 72 65 |p-vms) f|ile-dire|
|00001d10| 63 74 6f 72 79 2d 70 20 | 66 69 6c 65 20 22 5b 30 |ctory-p |file "[0|
|00001d20| 30 30 30 30 30 5d 22 5d | 20 33 20 28 23 24 20 2e |00000]"]| 3 (#$ .|
|00001d30| 20 37 32 37 31 29 5d 29 | 0a 23 40 37 37 20 54 72 | 7271)])|.#@77 Tr|
|00001d40| 79 20 74 6f 20 73 6c 61 | 6d 20 74 6f 67 65 74 68 |y to sla|m togeth|
|00001d50| 65 72 20 74 77 6f 20 70 | 61 72 74 73 20 6f 66 20 |er two p|arts of |
|00001d60| 61 20 66 69 6c 65 20 73 | 70 65 63 69 66 69 63 61 |a file s|pecifica|
|00001d70| 74 69 6f 6e 2c 20 73 79 | 73 74 65 6d 20 64 65 70 |tion, sy|stem dep|
|00001d80| 65 6e 64 65 6e 74 6c 79 | 2e 1f 0a 28 64 65 66 61 |endently|...(defa|
|00001d90| 6c 69 61 73 20 27 68 65 | 2d 63 6f 6e 63 61 74 2d |lias 'he|-concat-|
|00001da0| 64 69 72 65 63 74 6f 72 | 79 2d 66 69 6c 65 2d 6e |director|y-file-n|
|00001db0| 61 6d 65 20 23 5b 28 64 | 69 72 2d 70 61 72 74 20 |ame #[(d|ir-part |
|00001dc0| 6e 61 6d 65 2d 70 61 72 | 74 29 20 22 08 ac 82 09 |name-par|t) "....|
|00001dd0| 87 5c 6e c3 73 ab 9e 08 | c4 c5 4f c6 98 ab 92 09 |.\n.s...|..O.....|
|00001de0| c7 c8 4f c9 98 ab 8a 08 | c7 c4 4f 09 ca c5 4f 50 |..O.....|..O...OP|
|00001df0| 87 08 09 50 87 5c 6e cb | 73 ab a0 cc cd 08 5c 22 |...P.\n.|s.....\"|
|00001e00| ab 96 cc ce 08 5c 22 ac | 90 09 89 47 53 48 cf 55 |.....\".|...GSH.U|
|00001e10| ab 87 09 89 47 53 d0 49 | 88 08 09 50 87 08 09 50 |....GS.I|...P...P|
|00001e20| 87 22 20 5b 64 69 72 2d | 70 61 72 74 20 6e 61 6d |." [dir-|part nam|
|00001e30| 65 2d 70 61 72 74 20 73 | 79 73 74 65 6d 2d 74 79 |e-part s|ystem-ty|
|00001e40| 70 65 20 28 61 78 70 2d | 76 6d 73 20 76 61 78 2d |pe (axp-|vms vax-|
|00001e50| 76 6d 73 29 20 2d 31 20 | 6e 69 6c 20 22 5d 22 20 |vms) -1 |nil "]" |
|00001e60| 30 20 32 20 22 5b 2e 22 | 20 31 20 28 6d 73 2d 64 |0 2 "[."| 1 (ms-d|
|00001e70| 6f 73 20 77 33 32 29 20 | 73 74 72 69 6e 67 2d 6d |os w32) |string-m|
|00001e80| 61 74 63 68 20 22 5c 5c | 5c 5c 22 20 22 2f 22 20 |atch "\\|\\" "/" |
|00001e90| 3f 5c 2f 20 3f 5c 5c 5d | 20 34 20 28 23 24 20 2e |?\/ ?\\]| 4 (#$ .|
|00001ea0| 20 37 34 38 36 29 5d 29 | 0a 23 40 32 35 32 20 54 | 7486)])|.#@252 T|
|00001eb0| 72 79 20 74 6f 20 63 6f | 6d 70 6c 65 74 65 20 77 |ry to co|mplete w|
|00001ec0| 6f 72 64 20 61 73 20 61 | 6e 20 45 6d 61 63 73 20 |ord as a|n Emacs |
|00001ed0| 4c 69 73 70 20 73 79 6d | 62 6f 6c 2e 0a 54 68 65 |Lisp sym|bol..The|
|00001ee0| 20 61 72 67 75 6d 65 6e | 74 20 4f 4c 44 20 68 61 | argumen|t OLD ha|
|00001ef0| 73 20 74 6f 20 62 65 20 | 6e 69 6c 20 74 68 65 20 |s to be |nil the |
|00001f00| 66 69 72 73 74 20 63 61 | 6c 6c 20 6f 66 20 74 68 |first ca|ll of th|
|00001f10| 69 73 20 66 75 6e 63 74 | 69 6f 6e 2c 20 61 6e 64 |is funct|ion, and|
|00001f20| 20 74 0a 66 6f 72 20 73 | 75 62 73 65 71 75 65 6e | t.for s|ubsequen|
|00001f30| 74 20 63 61 6c 6c 73 20 | 28 66 6f 72 20 66 75 72 |t calls |(for fur|
|00001f40| 74 68 65 72 20 70 6f 73 | 73 69 62 6c 65 20 63 6f |ther pos|sible co|
|00001f50| 6d 70 6c 65 74 69 6f 6e | 73 20 6f 66 20 74 68 65 |mpletion|s of the|
|00001f60| 20 73 61 6d 65 0a 73 74 | 72 69 6e 67 29 2e 20 20 | same.st|ring). |
|00001f70| 49 74 20 72 65 74 75 72 | 6e 73 20 74 20 69 66 20 |It retur|ns t if |
|00001f80| 61 20 6e 65 77 20 63 6f | 6d 70 6c 65 74 69 6f 6e |a new co|mpletion|
|00001f90| 20 69 73 20 66 6f 75 6e | 64 2c 20 6e 69 6c 20 6f | is foun|d, nil o|
|00001fa0| 74 68 65 72 77 69 73 65 | 2e 1f 0a 28 64 65 66 61 |therwise|...(defa|
|00001fb0| 6c 69 61 73 20 27 74 72 | 79 2d 63 6f 6d 70 6c 65 |lias 'tr|y-comple|
|00001fc0| 74 65 2d 6c 69 73 70 2d | 73 79 6d 62 6f 6c 20 23 |te-lisp-|symbol #|
|00001fd0| 5b 28 6f 6c 64 29 20 22 | 08 ac a1 c1 c2 20 60 5c |[(old) "|..... `\|
|00001fe0| 22 88 c3 0c 0d 5c 22 ac | 84 0c 0d 42 15 0c c6 6b |"....\".|...B...k|
|00001ff0| 3f ad 89 c7 c8 0c 0e 09 | ca 23 cb 5c 22 16 0c 0e |?.......|.#.\"...|
|00002000| 0c ab 90 c3 0e 0c 40 0d | 5c 22 ab 88 0e 0c 41 89 |......@.|\"....A.|
|00002010| 16 0c ac 70 0e 0c ac 88 | 08 ab 83 cd 20 88 ce 87 |...p....|.... ...|
|00002020| cf 0e 0c 40 21 88 0e 0c | 41 16 0c d0 87 22 20 5b |...@!...|A...." [|
|00002030| 6f 6c 64 20 68 65 2d 69 | 6e 69 74 2d 73 74 72 69 |old he-i|nit-stri|
|00002040| 6e 67 20 68 65 2d 6c 69 | 73 70 2d 73 79 6d 62 6f |ng he-li|sp-symbo|
|00002050| 6c 2d 62 65 67 20 68 65 | 2d 73 74 72 69 6e 67 2d |l-beg he|-string-|
|00002060| 6d 65 6d 62 65 72 20 68 | 65 2d 73 65 61 72 63 68 |member h|e-search|
|00002070| 2d 73 74 72 69 6e 67 20 | 68 65 2d 74 72 69 65 64 |-string |he-tried|
|00002080| 2d 74 61 62 6c 65 20 22 | 22 20 73 6f 72 74 20 61 |-table "|" sort a|
|00002090| 6c 6c 2d 63 6f 6d 70 6c | 65 74 69 6f 6e 73 20 6f |ll-compl|etions o|
|000020a0| 62 61 72 72 61 79 20 23 | 5b 28 73 79 6d 29 20 22 |barray #|[(sym) "|
|000020b0| c0 09 21 ae 88 c2 09 21 | ae 83 c3 09 21 87 22 20 |..!....!|....!." |
|000020c0| 5b 62 6f 75 6e 64 70 20 | 73 79 6d 20 66 62 6f 75 |[boundp |sym fbou|
|000020d0| 6e 64 70 20 73 79 6d 62 | 6f 6c 2d 70 6c 69 73 74 |ndp symb|ol-plist|
|000020e0| 5d 20 32 5d 20 73 74 72 | 69 6e 67 2d 6c 65 73 73 |] 2] str|ing-less|
|000020f0| 70 20 68 65 2d 65 78 70 | 61 6e 64 2d 6c 69 73 74 |p he-exp|and-list|
|00002100| 20 68 65 2d 72 65 73 65 | 74 2d 73 74 72 69 6e 67 | he-rese|t-string|
|00002110| 20 6e 69 6c 20 68 65 2d | 73 75 62 73 74 69 74 75 | nil he-|substitu|
|00002120| 74 65 2d 73 74 72 69 6e | 67 20 74 5d 20 36 20 28 |te-strin|g t] 6 (|
|00002130| 23 24 20 2e 20 37 38 35 | 35 29 5d 29 0a 23 40 32 |#$ . 785|5)]).#@2|
|00002140| 31 38 20 54 72 79 20 74 | 6f 20 63 6f 6d 70 6c 65 |18 Try t|o comple|
|00002150| 74 65 20 61 73 20 61 6e | 20 45 6d 61 63 73 20 4c |te as an| Emacs L|
|00002160| 69 73 70 20 73 79 6d 62 | 6f 6c 2c 20 61 73 20 6d |isp symb|ol, as m|
|00002170| 61 6e 79 20 63 68 61 72 | 61 63 74 65 72 73 20 61 |any char|acters a|
|00002180| 73 20 75 6e 69 71 75 65 | 2e 0a 54 68 65 20 61 72 |s unique|..The ar|
|00002190| 67 75 6d 65 6e 74 20 4f | 4c 44 20 68 61 73 20 74 |gument O|LD has t|
|000021a0| 6f 20 62 65 20 6e 69 6c | 20 74 68 65 20 66 69 72 |o be nil| the fir|
|000021b0| 73 74 20 63 61 6c 6c 20 | 6f 66 20 74 68 69 73 20 |st call |of this |
|000021c0| 66 75 6e 63 74 69 6f 6e | 2e 20 20 49 74 0a 72 65 |function|. It.re|
|000021d0| 74 75 72 6e 73 20 74 20 | 69 66 20 61 20 75 6e 69 |turns t |if a uni|
|000021e0| 71 75 65 2c 20 70 6f 73 | 73 69 62 6c 79 20 70 61 |que, pos|sibly pa|
|000021f0| 72 74 69 61 6c 2c 20 63 | 6f 6d 70 6c 65 74 69 6f |rtial, c|ompletio|
|00002200| 6e 20 69 73 20 66 6f 75 | 6e 64 2c 20 6e 69 6c 20 |n is fou|nd, nil |
|00002210| 0a 6f 74 68 65 72 77 69 | 73 65 2e 1f 0a 28 64 65 |.otherwi|se...(de|
|00002220| 66 61 6c 69 61 73 20 27 | 74 72 79 2d 63 6f 6d 70 |falias '|try-comp|
|00002230| 6c 65 74 65 2d 6c 69 73 | 70 2d 73 79 6d 62 6f 6c |lete-lis|p-symbol|
|00002240| 2d 70 61 72 74 69 61 6c | 6c 79 20 23 5b 28 6f 6c |-partial|ly #[(ol|
|00002250| 64 29 20 22 c0 19 5c 6e | ac a5 c3 c4 20 60 5c 22 |d) "..\n|.... `\"|
|00002260| 88 0d c6 98 ac 87 c7 0d | 0e 08 c9 23 11 09 ca 61 |........|...#...a|
|00002270| ac 8c 09 0d 98 ac 87 cb | 09 0e 0c 5c 22 ab 82 c0 |........|...\"...|
|00002280| 11 09 ac 89 5c 6e ab 83 | cd 20 88 c0 aa 85 ce 09 |....\n..|. ......|
|00002290| 21 88 ca 29 87 22 20 5b | 6e 69 6c 20 65 78 70 61 |!..)." [|nil expa|
|000022a0| 6e 73 69 6f 6e 20 6f 6c | 64 20 68 65 2d 69 6e 69 |nsion ol|d he-ini|
|000022b0| 74 2d 73 74 72 69 6e 67 | 20 68 65 2d 6c 69 73 70 |t-string| he-lisp|
|000022c0| 2d 73 79 6d 62 6f 6c 2d | 62 65 67 20 68 65 2d 73 |-symbol-|beg he-s|
|000022d0| 65 61 72 63 68 2d 73 74 | 72 69 6e 67 20 22 22 20 |earch-st|ring "" |
|000022e0| 74 72 79 2d 63 6f 6d 70 | 6c 65 74 69 6f 6e 20 6f |try-comp|letion o|
|000022f0| 62 61 72 72 61 79 20 23 | 5b 28 73 79 6d 29 20 22 |barray #|[(sym) "|
|00002300| c0 09 21 ae 88 c2 09 21 | ae 83 c3 09 21 87 22 20 |..!....!|....!." |
|00002310| 5b 62 6f 75 6e 64 70 20 | 73 79 6d 20 66 62 6f 75 |[boundp |sym fbou|
|00002320| 6e 64 70 20 73 79 6d 62 | 6f 6c 2d 70 6c 69 73 74 |ndp symb|ol-plist|
|00002330| 5d 20 32 5d 20 74 20 68 | 65 2d 73 74 72 69 6e 67 |] 2] t h|e-string|
|00002340| 2d 6d 65 6d 62 65 72 20 | 68 65 2d 74 72 69 65 64 |-member |he-tried|
|00002350| 2d 74 61 62 6c 65 20 68 | 65 2d 72 65 73 65 74 2d |-table h|e-reset-|
|00002360| 73 74 72 69 6e 67 20 68 | 65 2d 73 75 62 73 74 69 |string h|e-substi|
|00002370| 74 75 74 65 2d 73 74 72 | 69 6e 67 5d 20 34 20 28 |tute-str|ing] 4 (|
|00002380| 23 24 20 2e 20 38 35 31 | 35 29 5d 29 0a 28 64 65 |#$ . 851|5)]).(de|
|00002390| 66 61 6c 69 61 73 20 27 | 68 65 2d 6c 69 73 70 2d |falias '|he-lisp-|
|000023a0| 73 79 6d 62 6f 6c 2d 62 | 65 67 20 23 5b 6e 69 6c |symbol-b|eg #[nil|
|000023b0| 20 22 c0 19 8a 09 c2 78 | 88 60 2a 87 22 20 5b 22 | ".....x|.`*." ["|
|000023c0| 2d 61 2d 7a 41 2d 5a 30 | 2d 39 5f 2e 22 20 73 6b |-a-zA-Z0|-9_." sk|
|000023d0| 69 70 73 20 6e 69 6c 5d | 20 32 5d 29 0a 23 40 32 |ips nil]| 2]).#@2|
|000023e0| 37 32 20 54 72 79 20 74 | 6f 20 63 6f 6d 70 6c 65 |72 Try t|o comple|
|000023f0| 74 65 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 6c |te the c|urrent l|
|00002400| 69 6e 65 20 74 6f 20 61 | 6e 20 65 6e 74 69 72 65 |ine to a|n entire|
|00002410| 20 6c 69 6e 65 20 69 6e | 20 74 68 65 20 62 75 66 | line in| the buf|
|00002420| 66 65 72 2e 0a 54 68 65 | 20 61 72 67 75 6d 65 6e |fer..The| argumen|
|00002430| 74 20 4f 4c 44 20 68 61 | 73 20 74 6f 20 62 65 20 |t OLD ha|s to be |
|00002440| 6e 69 6c 20 74 68 65 20 | 66 69 72 73 74 20 63 61 |nil the |first ca|
|00002450| 6c 6c 20 6f 66 20 74 68 | 69 73 20 66 75 6e 63 74 |ll of th|is funct|
|00002460| 69 6f 6e 2c 20 61 6e 64 | 20 74 0a 66 6f 72 20 73 |ion, and| t.for s|
|00002470| 75 62 73 65 71 75 65 6e | 74 20 63 61 6c 6c 73 20 |ubsequen|t calls |
|00002480| 28 66 6f 72 20 66 75 72 | 74 68 65 72 20 70 6f 73 |(for fur|ther pos|
|00002490| 73 69 62 6c 65 20 63 6f | 6d 70 6c 65 74 69 6f 6e |sible co|mpletion|
|000024a0| 73 20 6f 66 20 74 68 65 | 20 73 61 6d 65 0a 73 74 |s of the| same.st|
|000024b0| 72 69 6e 67 29 2e 20 20 | 49 74 20 72 65 74 75 72 |ring). |It retur|
|000024c0| 6e 73 20 74 20 69 66 20 | 61 20 6e 65 77 20 63 6f |ns t if |a new co|
|000024d0| 6d 70 6c 65 74 69 6f 6e | 20 69 73 20 66 6f 75 6e |mpletion| is foun|
|000024e0| 64 2c 20 6e 69 6c 20 6f | 74 68 65 72 77 69 73 65 |d, nil o|therwise|
|000024f0| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 74 72 |...(defa|lias 'tr|
|00002500| 79 2d 65 78 70 61 6e 64 | 2d 6c 69 6e 65 20 23 5b |y-expand|-line #[|
|00002510| 28 6f 6c 64 29 20 22 c0 | c1 70 21 ad 81 5c 6e 1b |(old) ".|.p!..\n.|
|00002520| 1c 0d ac 91 c6 c7 0b 21 | 60 5c 22 88 0e 08 0e 09 |.......!|`\".....|
|00002530| c0 93 88 ca 16 0b 0e 0c | cd 6b ac b8 8a 0e 0b ab |........|.k......|
|00002540| 9e 0e 08 62 88 ce 0e 0c | 0b ca 23 14 0e 08 60 c0 |...b....|..#...`.|
|00002550| 93 88 0c ac 8a 0e 08 0e | 0f c0 93 88 c0 16 0b 0c |........|........|
|00002560| ac 91 0e 08 62 88 ce 0e | 0c 0b c0 23 14 0e 08 60 |....b...|...#...`|
|00002570| c0 93 88 29 0c ac 89 0d | ab 83 d0 20 88 c0 aa 86 |...)....|... ....|
|00002580| d1 0c ca 5c 22 88 ca 2a | 87 22 20 5b 6e 69 6c 20 |...\"..*|." [nil |
|00002590| 67 65 74 2d 62 75 66 66 | 65 72 2d 70 72 6f 63 65 |get-buff|er-proce|
|000025a0| 73 73 20 63 6f 6d 69 6e | 74 2d 70 72 6f 6d 70 74 |ss comin|t-prompt|
|000025b0| 2d 72 65 67 65 78 70 20 | 73 74 72 69 70 2d 70 72 |-regexp |strip-pr|
|000025c0| 6f 6d 70 74 20 65 78 70 | 61 6e 73 69 6f 6e 20 6f |ompt exp|ansion o|
|000025d0| 6c 64 20 68 65 2d 69 6e | 69 74 2d 73 74 72 69 6e |ld he-in|it-strin|
|000025e0| 67 20 68 65 2d 6c 69 6e | 65 2d 62 65 67 20 68 65 |g he-lin|e-beg he|
|000025f0| 2d 73 65 61 72 63 68 2d | 6c 6f 63 20 68 65 2d 73 |-search-|loc he-s|
|00002600| 74 72 69 6e 67 2d 62 65 | 67 20 74 20 68 65 2d 73 |tring-be|g t he-s|
|00002610| 65 61 72 63 68 2d 62 77 | 20 68 65 2d 73 65 61 72 |earch-bw| he-sear|
|00002620| 63 68 2d 73 74 72 69 6e | 67 20 22 22 20 68 65 2d |ch-strin|g "" he-|
|00002630| 6c 69 6e 65 2d 73 65 61 | 72 63 68 20 68 65 2d 73 |line-sea|rch he-s|
|00002640| 74 72 69 6e 67 2d 65 6e | 64 20 68 65 2d 72 65 73 |tring-en|d he-res|
|00002650| 65 74 2d 73 74 72 69 6e | 67 20 68 65 2d 73 75 62 |et-strin|g he-sub|
|00002660| 73 74 69 74 75 74 65 2d | 73 74 72 69 6e 67 5d 20 |stitute-|string] |
|00002670| 34 20 28 23 24 20 2e 20 | 39 31 38 37 29 5d 29 0a |4 (#$ . |9187)]).|
|00002680| 23 40 32 36 39 20 54 72 | 79 20 74 6f 20 63 6f 6d |#@269 Tr|y to com|
|00002690| 70 6c 65 74 65 20 74 68 | 65 20 63 75 72 72 65 6e |plete th|e curren|
|000026a0| 74 20 6c 69 6e 65 2c 20 | 73 65 61 72 63 68 69 6e |t line, |searchin|
|000026b0| 67 20 61 6c 6c 20 6f 74 | 68 65 72 20 62 75 66 66 |g all ot|her buff|
|000026c0| 65 72 73 2e 0a 54 68 65 | 20 61 72 67 75 6d 65 6e |ers..The| argumen|
|000026d0| 74 20 4f 4c 44 20 68 61 | 73 20 74 6f 20 62 65 20 |t OLD ha|s to be |
|000026e0| 6e 69 6c 20 74 68 65 20 | 66 69 72 73 74 20 63 61 |nil the |first ca|
|000026f0| 6c 6c 20 6f 66 20 74 68 | 69 73 20 66 75 6e 63 74 |ll of th|is funct|
|00002700| 69 6f 6e 2c 20 61 6e 64 | 20 74 0a 66 6f 72 20 73 |ion, and| t.for s|
|00002710| 75 62 73 65 71 75 65 6e | 74 20 63 61 6c 6c 73 20 |ubsequen|t calls |
|00002720| 28 66 6f 72 20 66 75 72 | 74 68 65 72 20 70 6f 73 |(for fur|ther pos|
|00002730| 73 69 62 6c 65 20 63 6f | 6d 70 6c 65 74 69 6f 6e |sible co|mpletion|
|00002740| 73 20 6f 66 20 74 68 65 | 20 73 61 6d 65 0a 73 74 |s of the| same.st|
|00002750| 72 69 6e 67 29 2e 20 20 | 49 74 20 72 65 74 75 72 |ring). |It retur|
|00002760| 6e 73 20 74 20 69 66 20 | 61 20 6e 65 77 20 63 6f |ns t if |a new co|
|00002770| 6d 70 6c 65 74 69 6f 6e | 20 69 73 20 66 6f 75 6e |mpletion| is foun|
|00002780| 64 2c 20 6e 69 6c 20 6f | 74 68 65 72 77 69 73 65 |d, nil o|therwise|
|00002790| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 74 72 |...(defa|lias 'tr|
|000027a0| 79 2d 65 78 70 61 6e 64 | 2d 6c 69 6e 65 2d 61 6c |y-expand|-line-al|
|000027b0| 6c 2d 62 75 66 66 65 72 | 73 20 23 5b 28 6f 6c 64 |l-buffer|s #[(old|
|000027c0| 29 20 22 c0 c1 70 21 ad | 81 5c 6e 70 0b 1c 1d 1e |) "..p!.|.\np....|
|000027d0| 06 1e 07 0e 08 ac 97 c9 | ca 0e 06 21 60 5c 22 88 |........|...!`\".|
|000027e0| cb 20 16 0c cd 16 0e 0e | 0f d0 0e 0c 40 93 88 0e |. ......|....@...|
|000027f0| 11 d2 6b ac f3 0e 0c ab | ef 0e 07 ac eb 0e 13 ab |..k.....|........|
|00002800| 87 0e 0e 0e 13 57 ab e0 | 0e 0c 40 71 88 70 0d 61 |.....W..|..@q.p.a|
|00002810| ac c7 0e 14 0e 15 73 ac | c0 d6 d7 20 0e 15 5c 22 |......s.|... ..\"|
|00002820| ac b8 8a 0e 0f 62 88 c1 | 70 21 ad 81 5c 6e 16 06 |.....b..|p!..\n..|
|00002830| 0c 1b d8 0e 11 0e 06 c0 | 23 29 16 07 0e 0f 60 c0 |........|#)....`.|
|00002840| 93 88 0e 07 ac 92 0e 0c | 41 16 0c 0e 0e 54 16 0e |........|A....T..|
|00002850| 0e 0f d0 0e 0c 40 93 88 | 29 aa 1c 0e 0c 41 16 0c |.....@..|)....A..|
|00002860| 0e 0f d0 0e 0c 40 93 88 | aa 0d 0d 71 88 0e 07 ac |.....@..|...q....|
|00002870| 8a 0e 08 ab 83 d9 20 88 | c0 aa 87 da 0e 07 db 5c |...... .|.......\|
|00002880| 22 88 db 2c 87 22 20 5b | 6e 69 6c 20 67 65 74 2d |"..,." [|nil get-|
|00002890| 62 75 66 66 65 72 2d 70 | 72 6f 63 65 73 73 20 63 |buffer-p|rocess c|
|000028a0| 6f 6d 69 6e 74 2d 70 72 | 6f 6d 70 74 2d 72 65 67 |omint-pr|ompt-reg|
|000028b0| 65 78 70 20 63 61 73 65 | 2d 66 6f 6c 64 2d 73 65 |exp case|-fold-se|
|000028c0| 61 72 63 68 20 6f 72 69 | 67 2d 63 61 73 65 2d 66 |arch ori|g-case-f|
|000028d0| 6f 6c 64 2d 73 65 61 72 | 63 68 20 62 75 66 20 73 |old-sear|ch buf s|
|000028e0| 74 72 69 70 2d 70 72 6f | 6d 70 74 20 65 78 70 61 |trip-pro|mpt expa|
|000028f0| 6e 73 69 6f 6e 20 6f 6c | 64 20 68 65 2d 69 6e 69 |nsion ol|d he-ini|
|00002900| 74 2d 73 74 72 69 6e 67 | 20 68 65 2d 6c 69 6e 65 |t-string| he-line|
|00002910| 2d 62 65 67 20 62 75 66 | 66 65 72 2d 6c 69 73 74 |-beg buf|fer-list|
|00002920| 20 68 65 2d 73 65 61 72 | 63 68 2d 62 75 66 73 20 | he-sear|ch-bufs |
|00002930| 30 20 68 65 2d 73 65 61 | 72 63 68 65 64 2d 6e 2d |0 he-sea|rched-n-|
|00002940| 62 75 66 73 20 68 65 2d | 73 65 61 72 63 68 2d 6c |bufs he-|search-l|
|00002950| 6f 63 20 31 20 68 65 2d | 73 65 61 72 63 68 2d 73 |oc 1 he-|search-s|
|00002960| 74 72 69 6e 67 20 22 22 | 20 68 69 70 70 69 65 2d |tring ""| hippie-|
|00002970| 65 78 70 61 6e 64 2d 6d | 61 78 2d 62 75 66 66 65 |expand-m|ax-buffe|
|00002980| 72 73 20 6d 61 6a 6f 72 | 2d 6d 6f 64 65 20 68 69 |rs major|-mode hi|
|00002990| 70 70 69 65 2d 65 78 70 | 61 6e 64 2d 69 67 6e 6f |ppie-exp|and-igno|
|000029a0| 72 65 2d 62 75 66 66 65 | 72 73 20 68 65 2d 72 65 |re-buffe|rs he-re|
|000029b0| 67 65 78 70 2d 6d 65 6d | 62 65 72 20 62 75 66 66 |gexp-mem|ber buff|
|000029c0| 65 72 2d 6e 61 6d 65 20 | 68 65 2d 6c 69 6e 65 2d |er-name |he-line-|
|000029d0| 73 65 61 72 63 68 20 68 | 65 2d 72 65 73 65 74 2d |search h|e-reset-|
|000029e0| 73 74 72 69 6e 67 20 68 | 65 2d 73 75 62 73 74 69 |string h|e-substi|
|000029f0| 74 75 74 65 2d 73 74 72 | 69 6e 67 20 74 5d 20 34 |tute-str|ing t] 4|
|00002a00| 20 28 23 24 20 2e 20 39 | 38 36 32 29 5d 29 0a 28 | (#$ . 9|862)]).(|
|00002a10| 64 65 66 61 6c 69 61 73 | 20 27 68 65 2d 6c 69 6e |defalias| 'he-lin|
|00002a20| 65 2d 73 65 61 72 63 68 | 20 23 5b 28 73 74 72 20 |e-search| #[(str |
|00002a30| 73 74 72 69 70 2d 70 72 | 6f 6d 70 74 20 72 65 76 |strip-pr|ompt rev|
|00002a40| 65 72 73 65 29 20 22 c0 | 19 09 ac ac 5c 6e ab 8b |erse) ".|....\n..|
|00002a50| c3 c4 0d 0e 06 5c 22 c0 | c7 23 aa 89 c8 c4 0d 0e |.....\".|.#......|
|00002a60| 06 5c 22 c0 c7 23 ab 93 | c9 94 c9 95 7b 11 ca 09 |.\"..#..|....{...|
|00002a70| 0e 0b c7 23 ab 56 c0 89 | 11 ab 54 09 29 87 22 20 |...#.V..|..T.)." |
|00002a80| 5b 6e 69 6c 20 72 65 73 | 75 6c 74 20 72 65 76 65 |[nil res|ult reve|
|00002a90| 72 73 65 20 72 65 2d 73 | 65 61 72 63 68 2d 62 61 |rse re-s|earch-ba|
|00002aa0| 63 6b 77 61 72 64 20 68 | 65 2d 6c 69 6e 65 2d 73 |ckward h|e-line-s|
|00002ab0| 65 61 72 63 68 2d 72 65 | 67 65 78 70 20 73 74 72 |earch-re|gexp str|
|00002ac0| 20 73 74 72 69 70 2d 70 | 72 6f 6d 70 74 20 74 20 | strip-p|rompt t |
|00002ad0| 72 65 2d 73 65 61 72 63 | 68 2d 66 6f 72 77 61 72 |re-searc|h-forwar|
|00002ae0| 64 20 32 20 68 65 2d 73 | 74 72 69 6e 67 2d 6d 65 |d 2 he-s|tring-me|
|00002af0| 6d 62 65 72 20 68 65 2d | 74 72 69 65 64 2d 74 61 |mber he-|tried-ta|
|00002b00| 62 6c 65 5d 20 35 5d 29 | 0a 28 64 65 66 61 6c 69 |ble] 5])|.(defali|
|00002b10| 61 73 20 27 68 65 2d 6c | 69 6e 65 2d 62 65 67 20 |as 'he-l|ine-beg |
|00002b20| 23 5b 28 73 74 72 69 70 | 2d 70 72 6f 6d 70 74 29 |#[(strip|-prompt)|
|00002b30| 20 22 8a c0 c1 c2 0b 5c | 22 8a c4 79 88 60 29 c5 | ".....\|"..y.`).|
|00002b40| 23 ab 84 c6 94 aa 81 60 | 29 87 22 20 5b 72 65 2d |#......`|)." [re-|
|00002b50| 73 65 61 72 63 68 2d 62 | 61 63 6b 77 61 72 64 20 |search-b|ackward |
|00002b60| 68 65 2d 6c 69 6e 65 2d | 73 65 61 72 63 68 2d 72 |he-line-|search-r|
|00002b70| 65 67 65 78 70 20 22 22 | 20 73 74 72 69 70 2d 70 |egexp ""| strip-p|
|00002b80| 72 6f 6d 70 74 20 30 20 | 74 20 32 5d 20 34 5d 29 |rompt 0 |t 2] 4])|
|00002b90| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 68 65 2d 6c |.(defali|as 'he-l|
|00002ba0| 69 6e 65 2d 73 65 61 72 | 63 68 2d 72 65 67 65 78 |ine-sear|ch-regex|
|00002bb0| 70 20 23 5b 28 70 61 74 | 20 73 74 72 69 70 2d 70 |p #[(pat| strip-p|
|00002bc0| 72 6f 6d 70 74 29 20 22 | 08 ab 8a c1 5c 6e c3 c4 |rompt) "|....\n..|
|00002bd0| 0d 21 c6 b0 05 87 c7 c4 | 0d 21 c6 51 87 22 20 5b |.!......|.!.Q." [|
|00002be0| 73 74 72 69 70 2d 70 72 | 6f 6d 70 74 20 22 5c 5c |strip-pr|ompt "\\|
|00002bf0| 28 22 20 63 6f 6d 69 6e | 74 2d 70 72 6f 6d 70 74 |(" comin|t-prompt|
|00002c00| 2d 72 65 67 65 78 70 20 | 22 5c 5c 7c 5e 5c 5c 73 |-regexp |"\\|^\\s|
|00002c10| 2d 2a 5c 5c 29 5c 5c 28 | 22 20 72 65 67 65 78 70 |-*\\)\\(|" regexp|
|00002c20| 2d 71 75 6f 74 65 20 70 | 61 74 20 22 5b 5e 5c 6e |-quote p|at "[^\n|
|00002c30| 5d 2a 5b 5e 20 09 5c 6e | 5d 5c 5c 29 22 20 22 5e |]*[^ .\n|]\\)" "^|
|00002c40| 5c 5c 28 5c 5c 73 2d 2a | 5c 5c 29 5c 5c 28 22 5d |\\(\\s-*|\\)\\("]|
|00002c50| 20 35 5d 29 0a 23 40 32 | 35 35 20 54 72 79 20 74 | 5]).#@2|55 Try t|
|00002c60| 6f 20 63 6f 6d 70 6c 65 | 74 65 20 74 68 65 20 63 |o comple|te the c|
|00002c70| 75 72 72 65 6e 74 20 62 | 65 67 69 6e 6e 69 6e 67 |urrent b|eginning|
|00002c80| 20 6f 66 20 61 20 6c 69 | 73 74 2e 0a 54 68 65 20 | of a li|st..The |
|00002c90| 61 72 67 75 6d 65 6e 74 | 20 4f 4c 44 20 68 61 73 |argument| OLD has|
|00002ca0| 20 74 6f 20 62 65 20 6e | 69 6c 20 74 68 65 20 66 | to be n|il the f|
|00002cb0| 69 72 73 74 20 63 61 6c | 6c 20 6f 66 20 74 68 69 |irst cal|l of thi|
|00002cc0| 73 20 66 75 6e 63 74 69 | 6f 6e 2c 20 61 6e 64 20 |s functi|on, and |
|00002cd0| 74 0a 66 6f 72 20 73 75 | 62 73 65 71 75 65 6e 74 |t.for su|bsequent|
|00002ce0| 20 63 61 6c 6c 73 20 28 | 66 6f 72 20 66 75 72 74 | calls (|for furt|
|00002cf0| 68 65 72 20 70 6f 73 73 | 69 62 6c 65 20 63 6f 6d |her poss|ible com|
|00002d00| 70 6c 65 74 69 6f 6e 73 | 20 6f 66 20 74 68 65 20 |pletions| of the |
|00002d10| 73 61 6d 65 0a 73 74 72 | 69 6e 67 29 2e 20 20 49 |same.str|ing). I|
|00002d20| 74 20 72 65 74 75 72 6e | 73 20 74 20 69 66 20 61 |t return|s t if a|
|00002d30| 20 6e 65 77 20 63 6f 6d | 70 6c 65 74 69 6f 6e 20 | new com|pletion |
|00002d40| 69 73 20 66 6f 75 6e 64 | 2c 20 6e 69 6c 20 6f 74 |is found|, nil ot|
|00002d50| 68 65 72 77 69 73 65 2e | 1f 0a 28 64 65 66 61 6c |herwise.|..(defal|
|00002d60| 69 61 73 20 27 74 72 79 | 2d 65 78 70 61 6e 64 2d |ias 'try|-expand-|
|00002d70| 6c 69 73 74 20 23 5b 28 | 6f 6c 64 29 20 22 c0 19 |list #[(|old) "..|
|00002d80| 5c 6e ac 8f c3 c4 20 60 | 5c 22 88 0d 0e 06 c0 93 |\n.... `|\"......|
|00002d90| 88 c7 16 08 0e 09 ca 6b | ac b1 8a 0e 08 ab 9a 0d |.......k|........|
|00002da0| 62 88 cb 0e 09 c7 5c 22 | 11 0d 60 c0 93 88 09 ac |b.....\"|..`.....|
|00002db0| 89 0d 0e 0c c0 93 88 c0 | 16 08 09 ac 8e 0d 62 88 |........|......b.|
|00002dc0| cb 0e 09 c0 5c 22 11 0d | 60 c0 93 88 29 09 ac 89 |....\"..|`...)...|
|00002dd0| 5c 6e ab 83 cd 20 88 c0 | aa 86 ce 09 c7 5c 22 88 |\n... ..|.....\".|
|00002de0| c7 29 87 22 20 5b 6e 69 | 6c 20 65 78 70 61 6e 73 |.)." [ni|l expans|
|00002df0| 69 6f 6e 20 6f 6c 64 20 | 68 65 2d 69 6e 69 74 2d |ion old |he-init-|
|00002e00| 73 74 72 69 6e 67 20 68 | 65 2d 6c 69 73 74 2d 62 |string h|e-list-b|
|00002e10| 65 67 20 68 65 2d 73 65 | 61 72 63 68 2d 6c 6f 63 |eg he-se|arch-loc|
|00002e20| 20 68 65 2d 73 74 72 69 | 6e 67 2d 62 65 67 20 74 | he-stri|ng-beg t|
|00002e30| 20 68 65 2d 73 65 61 72 | 63 68 2d 62 77 20 68 65 | he-sear|ch-bw he|
|00002e40| 2d 73 65 61 72 63 68 2d | 73 74 72 69 6e 67 20 22 |-search-|string "|
|00002e50| 22 20 68 65 2d 6c 69 73 | 74 2d 73 65 61 72 63 68 |" he-lis|t-search|
|00002e60| 20 68 65 2d 73 74 72 69 | 6e 67 2d 65 6e 64 20 68 | he-stri|ng-end h|
|00002e70| 65 2d 72 65 73 65 74 2d | 73 74 72 69 6e 67 20 68 |e-reset-|string h|
|00002e80| 65 2d 73 75 62 73 74 69 | 74 75 74 65 2d 73 74 72 |e-substi|tute-str|
|00002e90| 69 6e 67 5d 20 33 20 28 | 23 24 20 2e 20 31 31 33 |ing] 3 (|#$ . 113|
|00002ea0| 35 35 29 5d 29 0a 23 40 | 32 36 39 20 54 72 79 20 |55)]).#@|269 Try |
|00002eb0| 74 6f 20 63 6f 6d 70 6c | 65 74 65 20 74 68 65 20 |to compl|ete the |
|00002ec0| 63 75 72 72 65 6e 74 20 | 6c 69 73 74 2c 20 73 65 |current |list, se|
|00002ed0| 61 72 63 68 69 6e 67 20 | 61 6c 6c 20 6f 74 68 65 |arching |all othe|
|00002ee0| 72 20 62 75 66 66 65 72 | 73 2e 0a 54 68 65 20 61 |r buffer|s..The a|
|00002ef0| 72 67 75 6d 65 6e 74 20 | 4f 4c 44 20 68 61 73 20 |rgument |OLD has |
|00002f00| 74 6f 20 62 65 20 6e 69 | 6c 20 74 68 65 20 66 69 |to be ni|l the fi|
|00002f10| 72 73 74 20 63 61 6c 6c | 20 6f 66 20 74 68 69 73 |rst call| of this|
|00002f20| 20 66 75 6e 63 74 69 6f | 6e 2c 20 61 6e 64 20 74 | functio|n, and t|
|00002f30| 0a 66 6f 72 20 73 75 62 | 73 65 71 75 65 6e 74 20 |.for sub|sequent |
|00002f40| 63 61 6c 6c 73 20 28 66 | 6f 72 20 66 75 72 74 68 |calls (f|or furth|
|00002f50| 65 72 20 70 6f 73 73 69 | 62 6c 65 20 63 6f 6d 70 |er possi|ble comp|
|00002f60| 6c 65 74 69 6f 6e 73 20 | 6f 66 20 74 68 65 20 73 |letions |of the s|
|00002f70| 61 6d 65 0a 73 74 72 69 | 6e 67 29 2e 20 20 49 74 |ame.stri|ng). It|
|00002f80| 20 72 65 74 75 72 6e 73 | 20 74 20 69 66 20 61 20 | returns| t if a |
|00002f90| 6e 65 77 20 63 6f 6d 70 | 6c 65 74 69 6f 6e 20 69 |new comp|letion i|
|00002fa0| 73 20 66 6f 75 6e 64 2c | 20 6e 69 6c 20 6f 74 68 |s found,| nil oth|
|00002fb0| 65 72 77 69 73 65 2e 1f | 0a 28 64 65 66 61 6c 69 |erwise..|.(defali|
|00002fc0| 61 73 20 27 74 72 79 2d | 65 78 70 61 6e 64 2d 6c |as 'try-|expand-l|
|00002fd0| 69 73 74 2d 61 6c 6c 2d | 62 75 66 66 65 72 73 20 |ist-all-|buffers |
|00002fe0| 23 5b 28 6f 6c 64 29 20 | 22 c0 70 09 1a 1b 1c 0d |#[(old) |".p.....|
|00002ff0| ac 95 c6 c7 20 60 5c 22 | 88 c8 20 16 09 ca 16 0b |.... `\"|.. .....|
|00003000| 0e 0c cd 0e 09 40 93 88 | 0e 0e cf 6b ac e6 0e 09 |.....@..|...k....|
|00003010| ab e2 0c ac df 0e 10 ab | 87 0e 0b 0e 10 57 ab d4 |........|.....W..|
|00003020| 0e 09 40 71 88 70 0b 61 | ac bb 0e 11 0e 12 73 ac |..@q.p.a|......s.|
|00003030| b4 d3 d4 20 0e 12 5c 22 | ac ac 8a 0e 0c 62 88 5c |... ..\"|.....b.\|
|00003040| 6e 19 d5 0e 0e c0 5c 22 | 29 14 0e 0c 60 c0 93 88 |n.....\"|)...`...|
|00003050| 0c ac 92 0e 09 41 16 09 | 0e 0b 54 16 0b 0e 0c cd |.....A..|..T.....|
|00003060| 0e 09 40 93 88 29 aa 29 | 0e 09 41 16 09 0e 0c cd |..@..).)|..A.....|
|00003070| 0e 09 40 93 88 aa 1a 0b | 71 88 0c ac 89 0d ab 83 |..@.....|q.......|
|00003080| d6 20 88 c0 aa 86 d7 0c | d8 5c 22 88 d8 2b 87 22 |. ......|.\"..+."|
|00003090| 20 5b 6e 69 6c 20 63 61 | 73 65 2d 66 6f 6c 64 2d | [nil ca|se-fold-|
|000030a0| 73 65 61 72 63 68 20 6f | 72 69 67 2d 63 61 73 65 |search o|rig-case|
|000030b0| 2d 66 6f 6c 64 2d 73 65 | 61 72 63 68 20 62 75 66 |-fold-se|arch buf|
|000030c0| 20 65 78 70 61 6e 73 69 | 6f 6e 20 6f 6c 64 20 68 | expansi|on old h|
|000030d0| 65 2d 69 6e 69 74 2d 73 | 74 72 69 6e 67 20 68 65 |e-init-s|tring he|
|000030e0| 2d 6c 69 73 74 2d 62 65 | 67 20 62 75 66 66 65 72 |-list-be|g buffer|
|000030f0| 2d 6c 69 73 74 20 68 65 | 2d 73 65 61 72 63 68 2d |-list he|-search-|
|00003100| 62 75 66 73 20 30 20 68 | 65 2d 73 65 61 72 63 68 |bufs 0 h|e-search|
|00003110| 65 64 2d 6e 2d 62 75 66 | 73 20 68 65 2d 73 65 61 |ed-n-buf|s he-sea|
|00003120| 72 63 68 2d 6c 6f 63 20 | 31 20 68 65 2d 73 65 61 |rch-loc |1 he-sea|
|00003130| 72 63 68 2d 73 74 72 69 | 6e 67 20 22 22 20 68 69 |rch-stri|ng "" hi|
|00003140| 70 70 69 65 2d 65 78 70 | 61 6e 64 2d 6d 61 78 2d |ppie-exp|and-max-|
|00003150| 62 75 66 66 65 72 73 20 | 6d 61 6a 6f 72 2d 6d 6f |buffers |major-mo|
|00003160| 64 65 20 68 69 70 70 69 | 65 2d 65 78 70 61 6e 64 |de hippi|e-expand|
|00003170| 2d 69 67 6e 6f 72 65 2d | 62 75 66 66 65 72 73 20 |-ignore-|buffers |
|00003180| 68 65 2d 72 65 67 65 78 | 70 2d 6d 65 6d 62 65 72 |he-regex|p-member|
|00003190| 20 62 75 66 66 65 72 2d | 6e 61 6d 65 20 68 65 2d | buffer-|name he-|
|000031a0| 6c 69 73 74 2d 73 65 61 | 72 63 68 20 68 65 2d 72 |list-sea|rch he-r|
|000031b0| 65 73 65 74 2d 73 74 72 | 69 6e 67 20 68 65 2d 73 |eset-str|ing he-s|
|000031c0| 75 62 73 74 69 74 75 74 | 65 2d 73 74 72 69 6e 67 |ubstitut|e-string|
|000031d0| 20 74 5d 20 33 20 28 23 | 24 20 2e 20 31 31 39 34 | t] 3 (#|$ . 1194|
|000031e0| 38 29 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |8)]).(de|falias '|
|000031f0| 68 65 2d 6c 69 73 74 2d | 73 65 61 72 63 68 20 23 |he-list-|search #|
|00003200| 5b 28 73 74 72 20 72 65 | 76 65 72 73 65 29 20 22 |[(str re|verse) "|
|00003210| c0 89 89 89 19 1a 1b 1c | 0c ac c3 0d ab 88 c6 0e |........|........|
|00003220| 07 c0 c8 23 aa 86 c9 0e | 07 c0 c8 23 ab b0 60 12 |...#....|...#..`.|
|00003230| ca 94 89 13 62 88 c0 11 | c0 cb cc 8f 88 0d ab 88 |....b...|........|
|00003240| 60 0e 0d 56 ab 82 c8 11 | 09 ac 8e 0b 60 7b 14 ce |`..V....|....`{..|
|00003250| 0c 0e 0f c8 23 ab 82 c0 | 14 5c 6e 62 88 aa 3a 0c |....#...|.\nb..:.|
|00003260| 2c 87 22 20 5b 6e 69 6c | 20 65 72 72 20 70 6f 73 |,." [nil| err pos|
|00003270| 20 62 65 67 20 72 65 73 | 75 6c 74 20 72 65 76 65 | beg res|ult reve|
|00003280| 72 73 65 20 73 65 61 72 | 63 68 2d 62 61 63 6b 77 |rse sear|ch-backw|
|00003290| 61 72 64 20 73 74 72 20 | 74 20 73 65 61 72 63 68 |ard str |t search|
|000032a0| 2d 66 6f 72 77 61 72 64 | 20 30 20 28 66 6f 72 77 |-forward| 0 (forw|
|000032b0| 61 72 64 2d 6c 69 73 74 | 20 31 29 20 28 28 65 72 |ard-list| 1) ((er|
|000032c0| 72 6f 72 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |ror (byt|e-code "|
|000032d0| c0 11 c0 87 22 20 5b 74 | 20 65 72 72 5d 20 31 29 |...." [t| err] 1)|
|000032e0| 29 29 20 68 65 2d 73 74 | 72 69 6e 67 2d 62 65 67 |)) he-st|ring-beg|
|000032f0| 20 68 65 2d 73 74 72 69 | 6e 67 2d 6d 65 6d 62 65 | he-stri|ng-membe|
|00003300| 72 20 68 65 2d 74 72 69 | 65 64 2d 74 61 62 6c 65 |r he-tri|ed-table|
|00003310| 5d 20 35 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |] 5]).(d|efalias |
|00003320| 27 68 65 2d 6c 69 73 74 | 2d 62 65 67 20 23 5b 6e |'he-list|-beg #[n|
|00003330| 69 6c 20 22 8a c0 c1 c2 | 8f 88 60 29 87 22 20 5b |il "....|..`)." [|
|00003340| 6e 69 6c 20 28 62 61 63 | 6b 77 61 72 64 2d 75 70 |nil (bac|kward-up|
|00003350| 2d 6c 69 73 74 20 31 29 | 20 28 28 65 72 72 6f 72 |-list 1)| ((error|
|00003360| 29 29 5d 20 33 5d 29 0a | 23 40 32 36 38 20 54 72 |))] 3]).|#@268 Tr|
|00003370| 79 20 74 6f 20 65 78 70 | 61 6e 64 20 77 6f 72 64 |y to exp|and word|
|00003380| 20 62 65 66 6f 72 65 20 | 70 6f 69 6e 74 20 61 63 | before |point ac|
|00003390| 63 6f 72 64 69 6e 67 20 | 74 6f 20 61 6c 6c 20 61 |cording |to all a|
|000033a0| 62 62 72 65 76 20 74 61 | 62 6c 65 73 2e 0a 54 68 |bbrev ta|bles..Th|
|000033b0| 65 20 61 72 67 75 6d 65 | 6e 74 20 4f 4c 44 20 68 |e argume|nt OLD h|
|000033c0| 61 73 20 74 6f 20 62 65 | 20 6e 69 6c 20 74 68 65 |as to be| nil the|
|000033d0| 20 66 69 72 73 74 20 63 | 61 6c 6c 20 6f 66 20 74 | first c|all of t|
|000033e0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 2c 20 61 6e |his func|tion, an|
|000033f0| 64 20 74 0a 66 6f 72 20 | 73 75 62 73 65 71 75 65 |d t.for |subseque|
|00003400| 6e 74 20 63 61 6c 6c 73 | 20 28 66 6f 72 20 66 75 |nt calls| (for fu|
|00003410| 72 74 68 65 72 20 70 6f | 73 73 69 62 6c 65 20 65 |rther po|ssible e|
|00003420| 78 70 61 6e 73 69 6f 6e | 73 20 6f 66 20 74 68 65 |xpansion|s of the|
|00003430| 20 73 61 6d 65 0a 73 74 | 72 69 6e 67 29 2e 20 20 | same.st|ring). |
|00003440| 49 74 20 72 65 74 75 72 | 6e 73 20 74 20 69 66 20 |It retur|ns t if |
|00003450| 61 20 6e 65 77 20 65 78 | 70 61 6e 73 69 6f 6e 20 |a new ex|pansion |
|00003460| 69 73 20 66 6f 75 6e 64 | 2c 20 6e 69 6c 20 6f 74 |is found|, nil ot|
|00003470| 68 65 72 77 69 73 65 2e | 1f 0a 28 64 65 66 61 6c |herwise.|..(defal|
|00003480| 69 61 73 20 27 74 72 79 | 2d 65 78 70 61 6e 64 2d |ias 'try|-expand-|
|00003490| 61 6c 6c 2d 61 62 62 72 | 65 76 73 20 23 5b 28 6f |all-abbr|evs #[(o|
|000034a0| 6c 64 29 20 22 08 ac 96 | c1 c2 20 60 5c 22 88 0b |ld) "...|.. `\"..|
|000034b0| c4 6b 3f ad 88 c5 c6 c7 | c8 0e 09 5c 22 5c 22 16 |.k?.....|...\"\".|
|000034c0| 5c 6e 0e 5c 6e ab 97 0e | 5c 6e 40 ab 8a cb 0e 5c |\n.\n...|\n@....\|
|000034d0| 6e 40 0e 0c cd 23 ab 88 | 0e 5c 6e 41 89 16 5c 6e |n@...#..|.\nA..\n|
|000034e0| ac 69 0e 5c 6e ac 88 08 | ab 83 ce 20 88 cf 87 d0 |.i.\n...|... ....|
|000034f0| 0e 5c 6e 40 cd 5c 22 88 | 0e 5c 6e 41 16 5c 6e cd |.\n@.\".|.\nA.\n.|
|00003500| 87 22 20 5b 6f 6c 64 20 | 68 65 2d 69 6e 69 74 2d |." [old |he-init-|
|00003510| 73 74 72 69 6e 67 20 68 | 65 2d 64 61 62 62 72 65 |string h|e-dabbre|
|00003520| 76 2d 62 65 67 20 68 65 | 2d 73 65 61 72 63 68 2d |v-beg he|-search-|
|00003530| 73 74 72 69 6e 67 20 22 | 22 20 6d 61 70 63 61 72 |string "|" mapcar|
|00003540| 20 23 5b 28 73 79 6d 29 | 20 22 c0 09 21 ad 8e c2 | #[(sym)| "..!...|
|00003550| c3 09 21 21 ad 87 c4 0d | 97 c3 09 21 5c 22 87 22 |..!!....|...!\"."|
|00003560| 20 5b 62 6f 75 6e 64 70 | 20 73 79 6d 20 76 65 63 | [boundp| sym vec|
|00003570| 74 6f 72 70 20 65 76 61 | 6c 20 61 62 62 72 65 76 |torp eva|l abbrev|
|00003580| 2d 65 78 70 61 6e 73 69 | 6f 6e 20 68 65 2d 73 65 |-expansi|on he-se|
|00003590| 61 72 63 68 2d 73 74 72 | 69 6e 67 5d 20 34 5d 20 |arch-str|ing] 4] |
|000035a0| 61 70 70 65 6e 64 20 28 | 6c 6f 63 61 6c 2d 61 62 |append (|local-ab|
|000035b0| 62 72 65 76 2d 74 61 62 | 6c 65 20 67 6c 6f 62 61 |brev-tab|le globa|
|000035c0| 6c 2d 61 62 62 72 65 76 | 2d 74 61 62 6c 65 29 20 |l-abbrev|-table) |
|000035d0| 61 62 62 72 65 76 2d 74 | 61 62 6c 65 2d 6e 61 6d |abbrev-t|able-nam|
|000035e0| 65 2d 6c 69 73 74 20 68 | 65 2d 65 78 70 61 6e 64 |e-list h|e-expand|
|000035f0| 2d 6c 69 73 74 20 68 65 | 2d 73 74 72 69 6e 67 2d |-list he|-string-|
|00003600| 6d 65 6d 62 65 72 20 68 | 65 2d 74 72 69 65 64 2d |member h|e-tried-|
|00003610| 74 61 62 6c 65 20 74 20 | 68 65 2d 72 65 73 65 74 |table t |he-reset|
|00003620| 2d 73 74 72 69 6e 67 20 | 6e 69 6c 20 68 65 2d 73 |-string |nil he-s|
|00003630| 75 62 73 74 69 74 75 74 | 65 2d 73 74 72 69 6e 67 |ubstitut|e-string|
|00003640| 5d 20 36 20 28 23 24 20 | 2e 20 31 33 31 36 36 29 |] 6 (#$ |. 13166)|
|00003650| 5d 29 0a 23 40 32 36 38 | 20 54 72 79 20 74 6f 20 |]).#@268| Try to |
|00003660| 65 78 70 61 6e 64 20 77 | 6f 72 64 20 22 64 79 6e |expand w|ord "dyn|
|00003670| 61 6d 69 63 61 6c 6c 79 | 22 2c 20 73 65 61 72 63 |amically|", searc|
|00003680| 68 69 6e 67 20 74 68 65 | 20 63 75 72 72 65 6e 74 |hing the| current|
|00003690| 20 62 75 66 66 65 72 2e | 0a 54 68 65 20 61 72 67 | buffer.|.The arg|
|000036a0| 75 6d 65 6e 74 20 4f 4c | 44 20 68 61 73 20 74 6f |ument OL|D has to|
|000036b0| 20 62 65 20 6e 69 6c 20 | 74 68 65 20 66 69 72 73 | be nil |the firs|
|000036c0| 74 20 63 61 6c 6c 20 6f | 66 20 74 68 69 73 20 66 |t call o|f this f|
|000036d0| 75 6e 63 74 69 6f 6e 2c | 20 61 6e 64 20 74 0a 66 |unction,| and t.f|
|000036e0| 6f 72 20 73 75 62 73 65 | 71 75 65 6e 74 20 63 61 |or subse|quent ca|
|000036f0| 6c 6c 73 20 28 66 6f 72 | 20 66 75 72 74 68 65 72 |lls (for| further|
|00003700| 20 70 6f 73 73 69 62 6c | 65 20 65 78 70 61 6e 73 | possibl|e expans|
|00003710| 69 6f 6e 73 20 6f 66 20 | 74 68 65 20 73 61 6d 65 |ions of |the same|
|00003720| 0a 73 74 72 69 6e 67 29 | 2e 20 20 49 74 20 72 65 |.string)|. It re|
|00003730| 74 75 72 6e 73 20 74 20 | 69 66 20 61 20 6e 65 77 |turns t |if a new|
|00003740| 20 65 78 70 61 6e 73 69 | 6f 6e 20 69 73 20 66 6f | expansi|on is fo|
|00003750| 75 6e 64 2c 20 6e 69 6c | 20 6f 74 68 65 72 77 69 |und, nil| otherwi|
|00003760| 73 65 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |se...(de|falias '|
|00003770| 74 72 79 2d 65 78 70 61 | 6e 64 2d 64 61 62 62 72 |try-expa|nd-dabbr|
|00003780| 65 76 20 23 5b 28 6f 6c | 64 29 20 22 c0 19 5c 6e |ev #[(ol|d) "..\n|
|00003790| ac 8f c3 c4 20 60 5c 22 | 88 0d 0e 06 c0 93 88 c7 |.... `\"|........|
|000037a0| 16 08 0e 09 ca 6b ac b1 | 8a 0e 08 ab 9a 0d 62 88 |.....k..|......b.|
|000037b0| cb 0e 09 c7 5c 22 11 0d | 60 c0 93 88 09 ac 89 0d |....\"..|`.......|
|000037c0| 0e 0c c0 93 88 c0 16 08 | 09 ac 8e 0d 62 88 cb 0e |........|....b...|
|000037d0| 09 c0 5c 22 11 0d 60 c0 | 93 88 29 09 ac 89 5c 6e |..\"..`.|..)...\n|
|000037e0| ab 83 cd 20 88 c0 aa 86 | ce 09 c7 5c 22 88 c7 29 |... ....|...\"..)|
|000037f0| 87 22 20 5b 6e 69 6c 20 | 65 78 70 61 6e 73 69 6f |." [nil |expansio|
|00003800| 6e 20 6f 6c 64 20 68 65 | 2d 69 6e 69 74 2d 73 74 |n old he|-init-st|
|00003810| 72 69 6e 67 20 68 65 2d | 64 61 62 62 72 65 76 2d |ring he-|dabbrev-|
|00003820| 62 65 67 20 68 65 2d 73 | 65 61 72 63 68 2d 6c 6f |beg he-s|earch-lo|
|00003830| 63 20 68 65 2d 73 74 72 | 69 6e 67 2d 62 65 67 20 |c he-str|ing-beg |
|00003840| 74 20 68 65 2d 73 65 61 | 72 63 68 2d 62 77 20 68 |t he-sea|rch-bw h|
|00003850| 65 2d 73 65 61 72 63 68 | 2d 73 74 72 69 6e 67 20 |e-search|-string |
|00003860| 22 22 20 68 65 2d 64 61 | 62 62 72 65 76 2d 73 65 |"" he-da|bbrev-se|
|00003870| 61 72 63 68 20 68 65 2d | 73 74 72 69 6e 67 2d 65 |arch he-|string-e|
|00003880| 6e 64 20 68 65 2d 72 65 | 73 65 74 2d 73 74 72 69 |nd he-re|set-stri|
|00003890| 6e 67 20 68 65 2d 73 75 | 62 73 74 69 74 75 74 65 |ng he-su|bstitute|
|000038a0| 2d 73 74 72 69 6e 67 5d | 20 33 20 28 23 24 20 2e |-string]| 3 (#$ .|
|000038b0| 20 31 33 39 31 33 29 5d | 29 0a 23 40 32 36 39 20 | 13913)]|).#@269 |
|000038c0| 54 72 69 65 73 20 74 6f | 20 65 78 70 61 6e 64 20 |Tries to| expand |
|000038d0| 77 6f 72 64 20 22 64 79 | 6e 61 6d 69 63 61 6c 6c |word "dy|namicall|
|000038e0| 79 22 2c 20 73 65 61 72 | 63 68 69 6e 67 20 61 6c |y", sear|ching al|
|000038f0| 6c 20 6f 74 68 65 72 20 | 62 75 66 66 65 72 73 2e |l other |buffers.|
|00003900| 0a 54 68 65 20 61 72 67 | 75 6d 65 6e 74 20 4f 4c |.The arg|ument OL|
|00003910| 44 20 68 61 73 20 74 6f | 20 62 65 20 6e 69 6c 20 |D has to| be nil |
|00003920| 74 68 65 20 66 69 72 73 | 74 20 63 61 6c 6c 20 6f |the firs|t call o|
|00003930| 66 20 74 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 2c |f this f|unction,|
|00003940| 20 61 6e 64 20 74 0a 66 | 6f 72 20 73 75 62 73 65 | and t.f|or subse|
|00003950| 71 75 65 6e 74 20 63 61 | 6c 6c 73 20 28 66 6f 72 |quent ca|lls (for|
|00003960| 20 66 75 72 74 68 65 72 | 20 70 6f 73 73 69 62 6c | further| possibl|
|00003970| 65 20 65 78 70 61 6e 73 | 69 6f 6e 73 20 6f 66 20 |e expans|ions of |
|00003980| 74 68 65 20 73 61 6d 65 | 0a 73 74 72 69 6e 67 29 |the same|.string)|
|00003990| 2e 20 20 49 74 20 72 65 | 74 75 72 6e 73 20 74 20 |. It re|turns t |
|000039a0| 69 66 20 61 20 6e 65 77 | 20 65 78 70 61 6e 73 69 |if a new| expansi|
|000039b0| 6f 6e 20 69 73 20 66 6f | 75 6e 64 2c 20 6e 69 6c |on is fo|und, nil|
|000039c0| 20 6f 74 68 65 72 77 69 | 73 65 2e 1f 0a 28 64 65 | otherwi|se...(de|
|000039d0| 66 61 6c 69 61 73 20 27 | 74 72 79 2d 65 78 70 61 |falias '|try-expa|
|000039e0| 6e 64 2d 64 61 62 62 72 | 65 76 2d 61 6c 6c 2d 62 |nd-dabbr|ev-all-b|
|000039f0| 75 66 66 65 72 73 20 23 | 5b 28 6f 6c 64 29 20 22 |uffers #|[(old) "|
|00003a00| c0 70 09 1a 1b 1c 0d ac | 95 c6 c7 20 60 5c 22 88 |.p......|... `\".|
|00003a10| c8 20 16 09 ca 16 0b 0e | 0c cd 0e 09 40 93 88 0e |. ......|....@...|
|00003a20| 0e cf 6b ac e6 0e 09 ab | e2 0c ac df 0e 10 ab 87 |..k.....|........|
|00003a30| 0e 0b 0e 10 57 ab d4 0e | 09 40 71 88 70 0b 61 ac |....W...|.@q.p.a.|
|00003a40| bb 0e 11 0e 12 73 ac b4 | d3 d4 20 0e 12 5c 22 ac |.....s..|.. ..\".|
|00003a50| ac 8a 0e 0c 62 88 5c 6e | 19 d5 0e 0e c0 5c 22 29 |....b.\n|.....\")|
|00003a60| 14 0e 0c 60 c0 93 88 0c | ac 92 0e 09 41 16 09 0e |...`....|....A...|
|00003a70| 0b 54 16 0b 0e 0c cd 0e | 09 40 93 88 29 aa 29 0e |.T......|.@..).).|
|00003a80| 09 41 16 09 0e 0c cd 0e | 09 40 93 88 aa 1a 0b 71 |.A......|.@.....q|
|00003a90| 88 0c ac 89 0d ab 83 d6 | 20 88 c0 aa 86 d7 0c d8 |........| .......|
|00003aa0| 5c 22 88 d8 2b 87 22 20 | 5b 6e 69 6c 20 63 61 73 |\"..+." |[nil cas|
|00003ab0| 65 2d 66 6f 6c 64 2d 73 | 65 61 72 63 68 20 6f 72 |e-fold-s|earch or|
|00003ac0| 69 67 2d 63 61 73 65 2d | 66 6f 6c 64 2d 73 65 61 |ig-case-|fold-sea|
|00003ad0| 72 63 68 20 62 75 66 20 | 65 78 70 61 6e 73 69 6f |rch buf |expansio|
|00003ae0| 6e 20 6f 6c 64 20 68 65 | 2d 69 6e 69 74 2d 73 74 |n old he|-init-st|
|00003af0| 72 69 6e 67 20 68 65 2d | 64 61 62 62 72 65 76 2d |ring he-|dabbrev-|
|00003b00| 62 65 67 20 62 75 66 66 | 65 72 2d 6c 69 73 74 20 |beg buff|er-list |
|00003b10| 68 65 2d 73 65 61 72 63 | 68 2d 62 75 66 73 20 30 |he-searc|h-bufs 0|
|00003b20| 20 68 65 2d 73 65 61 72 | 63 68 65 64 2d 6e 2d 62 | he-sear|ched-n-b|
|00003b30| 75 66 73 20 68 65 2d 73 | 65 61 72 63 68 2d 6c 6f |ufs he-s|earch-lo|
|00003b40| 63 20 31 20 68 65 2d 73 | 65 61 72 63 68 2d 73 74 |c 1 he-s|earch-st|
|00003b50| 72 69 6e 67 20 22 22 20 | 68 69 70 70 69 65 2d 65 |ring "" |hippie-e|
|00003b60| 78 70 61 6e 64 2d 6d 61 | 78 2d 62 75 66 66 65 72 |xpand-ma|x-buffer|
|00003b70| 73 20 6d 61 6a 6f 72 2d | 6d 6f 64 65 20 68 69 70 |s major-|mode hip|
|00003b80| 70 69 65 2d 65 78 70 61 | 6e 64 2d 69 67 6e 6f 72 |pie-expa|nd-ignor|
|00003b90| 65 2d 62 75 66 66 65 72 | 73 20 68 65 2d 72 65 67 |e-buffer|s he-reg|
|00003ba0| 65 78 70 2d 6d 65 6d 62 | 65 72 20 62 75 66 66 65 |exp-memb|er buffe|
|00003bb0| 72 2d 6e 61 6d 65 20 68 | 65 2d 64 61 62 62 72 65 |r-name h|e-dabbre|
|00003bc0| 76 2d 73 65 61 72 63 68 | 20 68 65 2d 72 65 73 65 |v-search| he-rese|
|00003bd0| 74 2d 73 74 72 69 6e 67 | 20 68 65 2d 73 75 62 73 |t-string| he-subs|
|00003be0| 74 69 74 75 74 65 2d 73 | 74 72 69 6e 67 20 74 5d |titute-s|tring t]|
|00003bf0| 20 33 20 28 23 24 20 2e | 20 31 34 35 32 38 29 5d | 3 (#$ .| 14528)]|
|00003c00| 29 0a 23 40 32 37 30 20 | 54 72 79 20 74 6f 20 65 |).#@270 |Try to e|
|00003c10| 78 70 61 6e 64 20 77 6f | 72 64 20 22 64 79 6e 61 |xpand wo|rd "dyna|
|00003c20| 6d 69 63 61 6c 6c 79 22 | 2c 20 73 65 61 72 63 68 |mically"|, search|
|00003c30| 69 6e 67 20 76 69 73 69 | 62 6c 65 20 77 69 6e 64 |ing visi|ble wind|
|00003c40| 6f 77 20 70 61 72 74 73 | 2e 0a 54 68 65 20 61 72 |ow parts|..The ar|
|00003c50| 67 75 6d 65 6e 74 20 4f | 4c 44 20 68 61 73 20 74 |gument O|LD has t|
|00003c60| 6f 20 62 65 20 6e 69 6c | 20 74 68 65 20 66 69 72 |o be nil| the fir|
|00003c70| 73 74 20 63 61 6c 6c 20 | 6f 66 20 74 68 69 73 20 |st call |of this |
|00003c80| 66 75 6e 63 74 69 6f 6e | 2c 20 61 6e 64 20 74 0a |function|, and t.|
|00003c90| 66 6f 72 20 73 75 62 73 | 65 71 75 65 6e 74 20 63 |for subs|equent c|
|00003ca0| 61 6c 6c 73 20 28 66 6f | 72 20 66 75 72 74 68 65 |alls (fo|r furthe|
|00003cb0| 72 20 70 6f 73 73 69 62 | 6c 65 20 65 78 70 61 6e |r possib|le expan|
|00003cc0| 73 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 73 61 6d |sions of| the sam|
|00003cd0| 65 0a 73 74 72 69 6e 67 | 29 2e 20 20 49 74 20 72 |e.string|). It r|
|00003ce0| 65 74 75 72 6e 73 20 74 | 20 69 66 20 61 20 6e 65 |eturns t| if a ne|
|00003cf0| 77 20 65 78 70 61 6e 73 | 69 6f 6e 20 69 73 20 66 |w expans|ion is f|
|00003d00| 6f 75 6e 64 2c 20 6e 69 | 6c 20 6f 74 68 65 72 77 |ound, ni|l otherw|
|00003d10| 69 73 65 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |ise...(d|efalias |
|00003d20| 27 74 72 79 2d 65 78 70 | 61 6e 64 2d 64 61 62 62 |'try-exp|and-dabb|
|00003d30| 72 65 76 2d 76 69 73 69 | 62 6c 65 20 23 5b 28 6f |rev-visi|ble #[(o|
|00003d40| 6c 64 29 20 22 c0 70 c1 | c2 c3 20 21 21 ab 83 c4 |ld) ".p.|.. !!...|
|00003d50| aa 81 c5 1e 06 1e 07 1e | 08 0e 09 ac 96 ca cb 20 |........|....... |
|00003d60| 60 5c 22 88 c3 20 16 0c | 0e 0d ce 0e 0c 21 cf 0e |`\".. ..|.....!..|
|00003d70| 0c 21 93 88 0e 10 d1 6b | ac ef d2 0e 0d 21 ab e9 |.!.....k|.....!..|
|00003d80| 0e 08 ac e5 8a d3 0e 0d | 21 71 88 0e 0d 62 88 d4 |........|!q...b..|
|00003d90| 0e 10 c0 d5 0e 0c 21 23 | 89 16 08 ab 9c d3 0e 16 |......!#|........|
|00003da0| 21 70 61 ab 94 d2 0e 16 | 21 d7 94 61 ab 8b d4 0e |!pa.....|!..a....|
|00003db0| 10 c0 d5 0e 0c 21 23 16 | 08 0e 0d 60 70 93 88 29 |.....!#.|...`p..)|
|00003dc0| 0e 08 ac 30 d8 0e 0c c0 | 0e 06 23 89 16 0c c3 20 |...0....|..#.... |
|00003dd0| 61 ab 88 0e 0d c0 89 93 | 88 aa 19 0e 0d ce 0e 0c |a.......|........|
|00003de0| 21 cf 0e 0c 21 93 88 aa | 0b 0e 07 71 88 0e 08 ac |!...!...|...q....|
|00003df0| 8a 0e 09 ab 83 d9 20 88 | c0 aa 87 da 0e 08 c5 5c |...... .|.......\|
|00003e00| 22 88 c5 2b 87 22 20 5b | 6e 69 6c 20 66 72 61 6d |"..+." [|nil fram|
|00003e10| 65 2d 76 69 73 69 62 6c | 65 2d 70 20 77 69 6e 64 |e-visibl|e-p wind|
|00003e20| 6f 77 2d 66 72 61 6d 65 | 20 73 65 6c 65 63 74 65 |ow-frame| selecte|
|00003e30| 64 2d 77 69 6e 64 6f 77 | 20 76 69 73 69 62 6c 65 |d-window| visible|
|00003e40| 20 74 20 66 6c 61 67 20 | 62 75 66 20 65 78 70 61 | t flag |buf expa|
|00003e50| 6e 73 69 6f 6e 20 6f 6c | 64 20 68 65 2d 69 6e 69 |nsion ol|d he-ini|
|00003e60| 74 2d 73 74 72 69 6e 67 | 20 68 65 2d 64 61 62 62 |t-string| he-dabb|
|00003e70| 72 65 76 2d 62 65 67 20 | 68 65 2d 73 65 61 72 63 |rev-beg |he-searc|
|00003e80| 68 2d 77 69 6e 64 6f 77 | 20 68 65 2d 73 65 61 72 |h-window| he-sear|
|00003e90| 63 68 2d 6c 6f 63 20 77 | 69 6e 64 6f 77 2d 73 74 |ch-loc w|indow-st|
|00003ea0| 61 72 74 20 77 69 6e 64 | 6f 77 2d 62 75 66 66 65 |art wind|ow-buffe|
|00003eb0| 72 20 68 65 2d 73 65 61 | 72 63 68 2d 73 74 72 69 |r he-sea|rch-stri|
|00003ec0| 6e 67 20 22 22 20 6d 61 | 72 6b 65 72 2d 70 6f 73 |ng "" ma|rker-pos|
|00003ed0| 69 74 69 6f 6e 20 6d 61 | 72 6b 65 72 2d 62 75 66 |ition ma|rker-buf|
|00003ee0| 66 65 72 20 68 65 2d 64 | 61 62 62 72 65 76 2d 73 |fer he-d|abbrev-s|
|00003ef0| 65 61 72 63 68 20 77 69 | 6e 64 6f 77 2d 65 6e 64 |earch wi|ndow-end|
|00003f00| 20 68 65 2d 73 74 72 69 | 6e 67 2d 62 65 67 20 30 | he-stri|ng-beg 0|
|00003f10| 20 6e 65 78 74 2d 77 69 | 6e 64 6f 77 20 68 65 2d | next-wi|ndow he-|
|00003f20| 72 65 73 65 74 2d 73 74 | 72 69 6e 67 20 68 65 2d |reset-st|ring he-|
|00003f30| 73 75 62 73 74 69 74 75 | 74 65 2d 73 74 72 69 6e |substitu|te-strin|
|00003f40| 67 5d 20 36 20 28 23 24 | 20 2e 20 31 35 33 36 38 |g] 6 (#$| . 15368|
|00003f50| 29 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 68 |)]).(def|alias 'h|
|00003f60| 65 2d 64 61 62 62 72 65 | 76 2d 73 65 61 72 63 68 |e-dabbre|v-search|
|00003f70| 20 23 5b 28 70 61 74 74 | 65 72 6e 20 26 6f 70 74 | #[(patt|ern &opt|
|00003f80| 69 6f 6e 61 6c 20 72 65 | 76 65 72 73 65 20 6c 69 |ional re|verse li|
|00003f90| 6d 69 74 29 20 22 c0 09 | c2 48 7a c3 61 ab 87 c4 |mit) "..|.Hz.a...|
|00003fa0| 09 21 c5 50 aa 86 c6 c4 | 09 21 c5 51 1e 07 1e 08 |.!.P....|.!.Q....|
|00003fb0| 0e 08 ac bb 0e 09 ab 89 | ca 0e 07 0e 0b cc 23 aa |........|......#.|
|00003fc0| 87 cd 0e 07 0e 0b cc 23 | ab a5 c2 94 c2 95 7b 16 |.......#|......{.|
|00003fd0| 08 c2 94 65 56 ab 89 c2 | 94 53 66 7a ce 73 ac 89 |...eV...|.Sfz.s..|
|00003fe0| cf 0e 08 0e 10 cc 23 ab | 47 c0 89 16 08 ab 45 0e |......#.|G.....E.|
|00003ff0| 08 2a 87 22 20 5b 6e 69 | 6c 20 70 61 74 74 65 72 |.*." [ni|l patter|
|00004000| 6e 20 30 20 3f 5c 5f 20 | 72 65 67 65 78 70 2d 71 |n 0 ?\_ |regexp-q|
|00004010| 75 6f 74 65 20 22 5c 5c | 28 5c 5c 73 77 5c 5c 7c |uote "\\|(\\sw\\||
|00004020| 5c 5c 73 5f 5c 5c 29 2b | 22 20 22 5c 5c 3c 22 20 |\\s_\\)+|" "\\<" |
|00004030| 72 65 67 70 61 74 20 72 | 65 73 75 6c 74 20 72 65 |regpat r|esult re|
|00004040| 76 65 72 73 65 20 72 65 | 2d 73 65 61 72 63 68 2d |verse re|-search-|
|00004050| 62 61 63 6b 77 61 72 64 | 20 6c 69 6d 69 74 20 74 |backward| limit t|
|00004060| 20 72 65 2d 73 65 61 72 | 63 68 2d 66 6f 72 77 61 | re-sear|ch-forwa|
|00004070| 72 64 20 28 3f 5c 5f 20 | 3f 77 29 20 68 65 2d 73 |rd (?\_ |?w) he-s|
|00004080| 74 72 69 6e 67 2d 6d 65 | 6d 62 65 72 20 68 65 2d |tring-me|mber he-|
|00004090| 74 72 69 65 64 2d 74 61 | 62 6c 65 5d 20 35 5d 29 |tried-ta|ble] 5])|
|000040a0| 0a 23 40 37 31 20 4e 6f | 6e 2d 4e 49 4c 20 6d 65 |.#@71 No|n-NIL me|
|000040b0| 61 6e 73 20 74 6f 6c 65 | 72 61 74 65 20 74 72 61 |ans tole|rate tra|
|000040c0| 69 6c 69 6e 67 20 73 70 | 61 63 65 73 20 69 6e 20 |iling sp|aces in |
|000040d0| 74 68 65 20 61 62 62 72 | 65 76 69 61 74 69 6f 6e |the abbr|eviation|
|000040e0| 20 74 6f 20 65 78 70 61 | 6e 64 2e 1f 0a 28 64 65 | to expa|nd...(de|
|000040f0| 66 76 61 72 20 68 65 2d | 64 61 62 62 72 65 76 2d |fvar he-|dabbrev-|
|00004100| 73 6b 69 70 2d 73 70 61 | 63 65 20 6e 69 6c 20 28 |skip-spa|ce nil (|
|00004110| 23 24 20 2e 20 31 36 35 | 35 30 29 29 0a 28 64 65 |#$ . 165|50)).(de|
|00004120| 66 61 6c 69 61 73 20 27 | 68 65 2d 64 61 62 62 72 |falias '|he-dabbr|
|00004130| 65 76 2d 62 65 67 20 23 | 5b 6e 69 6c 20 22 60 18 |ev-beg #|[nil "`.|
|00004140| 8a 09 ab 84 c2 c3 21 88 | c2 c4 21 c5 55 ab 83 08 |......!.|..!.U...|
|00004150| aa 81 60 2a 87 22 20 5b | 6f 70 20 68 65 2d 64 61 |..`*." [|op he-da|
|00004160| 62 62 72 65 76 2d 73 6b | 69 70 2d 73 70 61 63 65 |bbrev-sk|ip-space|
|00004170| 20 73 6b 69 70 2d 73 79 | 6e 74 61 78 2d 62 61 63 | skip-sy|ntax-bac|
|00004180| 6b 77 61 72 64 20 22 2e | 20 22 20 22 77 5f 22 20 |kward ".| " "w_" |
|00004190| 30 5d 20 32 5d 29 0a 23 | 40 32 36 35 20 54 72 79 |0] 2]).#|@265 Try|
|000041a0| 20 74 6f 20 65 78 70 61 | 6e 64 20 77 6f 72 64 20 | to expa|nd word |
|000041b0| 22 64 79 6e 61 6d 69 63 | 61 6c 6c 79 22 2c 20 73 |"dynamic|ally", s|
|000041c0| 65 61 72 63 68 69 6e 67 | 20 74 68 65 20 6b 69 6c |earching| the kil|
|000041d0| 6c 20 72 69 6e 67 2e 0a | 54 68 65 20 61 72 67 75 |l ring..|The argu|
|000041e0| 6d 65 6e 74 20 4f 4c 44 | 20 68 61 73 20 74 6f 20 |ment OLD| has to |
|000041f0| 62 65 20 6e 69 6c 20 74 | 68 65 20 66 69 72 73 74 |be nil t|he first|
|00004200| 20 63 61 6c 6c 20 6f 66 | 20 74 68 69 73 20 66 75 | call of| this fu|
|00004210| 6e 63 74 69 6f 6e 2c 20 | 61 6e 64 20 74 0a 66 6f |nction, |and t.fo|
|00004220| 72 20 73 75 62 73 65 71 | 75 65 6e 74 20 63 61 6c |r subseq|uent cal|
|00004230| 6c 73 20 28 66 6f 72 20 | 66 75 72 74 68 65 72 20 |ls (for |further |
|00004240| 70 6f 73 73 69 62 6c 65 | 20 63 6f 6d 70 6c 65 74 |possible| complet|
|00004250| 69 6f 6e 73 20 6f 66 20 | 74 68 65 20 73 61 6d 65 |ions of |the same|
|00004260| 0a 73 74 72 69 6e 67 29 | 2e 20 20 49 74 20 72 65 |.string)|. It re|
|00004270| 74 75 72 6e 73 20 74 20 | 69 66 20 61 20 6e 65 77 |turns t |if a new|
|00004280| 20 63 6f 6d 70 6c 65 74 | 69 6f 6e 20 69 73 20 66 | complet|ion is f|
|00004290| 6f 75 6e 64 2c 20 6e 69 | 6c 20 6f 74 68 65 72 77 |ound, ni|l otherw|
|000042a0| 69 73 65 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |ise...(d|efalias |
|000042b0| 27 74 72 79 2d 65 78 70 | 61 6e 64 2d 64 61 62 62 |'try-exp|and-dabb|
|000042c0| 72 65 76 2d 66 72 6f 6d | 2d 6b 69 6c 6c 20 23 5b |rev-from|-kill #[|
|000042d0| 28 6f 6c 64 29 20 22 c0 | 19 5c 6e ac 93 c3 c4 20 |(old) ".|.\n.... |
|000042e0| 60 5c 22 88 0d c6 6b 3f | ad 82 0e 07 16 08 c9 16 |`\"...k?|........|
|000042f0| 5c 6e 0d c6 6b ac 84 cb | 0d 21 11 09 ac 89 5c 6e |\n..k...|.!....\n|
|00004300| ab 83 cc 20 88 c0 aa 86 | cd 09 ce 5c 22 88 ce 29 |... ....|...\"..)|
|00004310| 87 22 20 5b 6e 69 6c 20 | 65 78 70 61 6e 73 69 6f |." [nil |expansio|
|00004320| 6e 20 6f 6c 64 20 68 65 | 2d 69 6e 69 74 2d 73 74 |n old he|-init-st|
|00004330| 72 69 6e 67 20 68 65 2d | 64 61 62 62 72 65 76 2d |ring he-|dabbrev-|
|00004340| 62 65 67 20 68 65 2d 73 | 65 61 72 63 68 2d 73 74 |beg he-s|earch-st|
|00004350| 72 69 6e 67 20 22 22 20 | 6b 69 6c 6c 2d 72 69 6e |ring "" |kill-rin|
|00004360| 67 20 68 65 2d 65 78 70 | 61 6e 64 2d 6c 69 73 74 |g he-exp|and-list|
|00004370| 20 30 20 68 65 2d 73 65 | 61 72 63 68 2d 6c 6f 63 | 0 he-se|arch-loc|
|00004380| 32 20 68 65 2d 64 61 62 | 62 72 65 76 2d 6b 69 6c |2 he-dab|brev-kil|
|00004390| 6c 2d 73 65 61 72 63 68 | 20 68 65 2d 72 65 73 65 |l-search| he-rese|
|000043a0| 74 2d 73 74 72 69 6e 67 | 20 68 65 2d 73 75 62 73 |t-string| he-subs|
|000043b0| 74 69 74 75 74 65 2d 73 | 74 72 69 6e 67 20 74 5d |titute-s|tring t]|
|000043c0| 20 33 20 28 23 24 20 2e | 20 31 36 37 39 37 29 5d | 3 (#$ .| 16797)]|
|000043d0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 68 65 2d |).(defal|ias 'he-|
|000043e0| 64 61 62 62 72 65 76 2d | 6b 69 6c 6c 2d 73 65 61 |dabbrev-|kill-sea|
|000043f0| 72 63 68 20 23 5b 28 70 | 61 74 74 65 72 6e 29 20 |rch #[(p|attern) |
|00004400| 22 c0 09 c2 48 7a c3 61 | ab 87 c4 09 21 c5 50 aa |"...Hz.a|....!.P.|
|00004410| 86 c6 c4 09 21 c5 51 0e | 07 40 1e 08 1e 09 1e 5c |....!.Q.|.@.....\|
|00004420| 6e 0e 5c 6e ac d6 0e 07 | ab d2 0e 5c 6e ac b8 cb |n.\n....|...\n...|
|00004430| 0e 09 0e 08 0e 0c 23 ab | ae 0e 08 c2 94 c2 95 4f |......#.|.......O|
|00004440| 16 5c 6e c2 94 54 16 0c | c2 94 c2 56 ab 8b 0e 08 |.\n..T..|...V....|
|00004450| c2 94 53 48 7a cd 73 ac | 89 ce 0e 5c 6e 0e 0f d0 |..SHz.s.|...\n...|
|00004460| 23 ab 4a c0 89 16 5c 6e | ab 48 0e 5c 6e ac 38 0e |#.J...\n|.H.\n.8.|
|00004470| 07 ab 34 0e 07 41 89 16 | 07 40 16 08 c2 16 0c aa |..4..A..|.@......|
|00004480| 26 0e 5c 6e 2b 87 22 20 | 5b 6e 69 6c 20 70 61 74 |&.\n+." |[nil pat|
|00004490| 74 65 72 6e 20 30 20 3f | 5c 5f 20 72 65 67 65 78 |tern 0 ?|\_ regex|
|000044a0| 70 2d 71 75 6f 74 65 20 | 22 5c 5c 28 5c 5c 73 77 |p-quote |"\\(\\sw|
|000044b0| 5c 5c 7c 5c 5c 73 5f 5c | 5c 29 2b 22 20 22 5c 5c |\\|\\s_\|\)+" "\\|
|000044c0| 3c 22 20 68 65 2d 65 78 | 70 61 6e 64 2d 6c 69 73 |<" he-ex|pand-lis|
|000044d0| 74 20 6b 69 6c 6c 73 74 | 72 20 72 65 67 70 61 74 |t killst|r regpat|
|000044e0| 20 72 65 73 75 6c 74 20 | 73 74 72 69 6e 67 2d 6d | result |string-m|
|000044f0| 61 74 63 68 20 68 65 2d | 73 65 61 72 63 68 2d 6c |atch he-|search-l|
|00004500| 6f 63 32 20 28 3f 5c 5f | 20 3f 77 29 20 68 65 2d |oc2 (?\_| ?w) he-|
|00004510| 73 74 72 69 6e 67 2d 6d | 65 6d 62 65 72 20 68 65 |string-m|ember he|
|00004520| 2d 74 72 69 65 64 2d 74 | 61 62 6c 65 20 74 5d 20 |-tried-t|able t] |
|00004530| 35 5d 29 0a 23 40 32 36 | 32 20 54 72 79 20 74 6f |5]).#@26|2 Try to|
|00004540| 20 63 6f 6d 70 6c 65 74 | 65 20 74 65 78 74 20 77 | complet|e text w|
|00004550| 69 74 68 20 73 6f 6d 65 | 74 68 69 6e 67 20 66 72 |ith some|thing fr|
|00004560| 6f 6d 20 74 68 65 20 6b | 69 6c 6c 20 72 69 6e 67 |om the k|ill ring|
|00004570| 2e 0a 54 68 65 20 61 72 | 67 75 6d 65 6e 74 20 4f |..The ar|gument O|
|00004580| 4c 44 20 68 61 73 20 74 | 6f 20 62 65 20 6e 69 6c |LD has t|o be nil|
|00004590| 20 74 68 65 20 66 69 72 | 73 74 20 63 61 6c 6c 20 | the fir|st call |
|000045a0| 6f 66 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |of this |function|
|000045b0| 2c 20 61 6e 64 20 74 0a | 66 6f 72 20 73 75 62 73 |, and t.|for subs|
|000045c0| 65 71 75 65 6e 74 20 63 | 61 6c 6c 73 20 28 66 6f |equent c|alls (fo|
|000045d0| 72 20 66 75 72 74 68 65 | 72 20 70 6f 73 73 69 62 |r furthe|r possib|
|000045e0| 6c 65 20 63 6f 6d 70 6c | 65 74 69 6f 6e 73 20 6f |le compl|etions o|
|000045f0| 66 20 74 68 65 20 73 61 | 6d 65 0a 73 74 72 69 6e |f the sa|me.strin|
|00004600| 67 29 2e 20 20 49 74 20 | 72 65 74 75 72 6e 73 20 |g). It |returns |
|00004610| 74 20 69 66 20 61 20 6e | 65 77 20 63 6f 6d 70 6c |t if a n|ew compl|
|00004620| 65 74 69 6f 6e 20 69 73 | 20 66 6f 75 6e 64 2c 20 |etion is| found, |
|00004630| 6e 69 6c 20 6f 74 68 65 | 72 77 69 73 65 2e 1f 0a |nil othe|rwise...|
|00004640| 28 64 65 66 61 6c 69 61 | 73 20 27 74 72 79 2d 65 |(defalia|s 'try-e|
|00004650| 78 70 61 6e 64 2d 77 68 | 6f 6c 65 2d 6b 69 6c 6c |xpand-wh|ole-kill|
|00004660| 20 23 5b 28 6f 6c 64 29 | 20 22 c0 19 5c 6e ac a3 | #[(old)| "..\n..|
|00004670| c3 c4 20 60 5c 22 88 c5 | 0e 06 0e 07 5c 22 ac 87 |.. `\"..|....\"..|
|00004680| 0e 06 0e 07 42 16 07 0e | 06 c8 6b 3f ad 82 0e 09 |....B...|..k?....|
|00004690| 16 5c 6e c0 16 0b 0e 06 | c8 6b ac 85 cc 0e 06 21 |.\n.....|.k.....!|
|000046a0| 11 09 ac 89 5c 6e ab 83 | cd 20 88 c0 aa 85 ce 09 |....\n..|. ......|
|000046b0| 21 88 cf 29 87 22 20 5b | 6e 69 6c 20 65 78 70 61 |!..)." [|nil expa|
|000046c0| 6e 73 69 6f 6e 20 6f 6c | 64 20 68 65 2d 69 6e 69 |nsion ol|d he-ini|
|000046d0| 74 2d 73 74 72 69 6e 67 | 20 68 65 2d 6b 69 6c 6c |t-string| he-kill|
|000046e0| 2d 62 65 67 20 68 65 2d | 73 74 72 69 6e 67 2d 6d |-beg he-|string-m|
|000046f0| 65 6d 62 65 72 20 68 65 | 2d 73 65 61 72 63 68 2d |ember he|-search-|
|00004700| 73 74 72 69 6e 67 20 68 | 65 2d 74 72 69 65 64 2d |string h|e-tried-|
|00004710| 74 61 62 6c 65 20 22 22 | 20 6b 69 6c 6c 2d 72 69 |table ""| kill-ri|
|00004720| 6e 67 20 68 65 2d 65 78 | 70 61 6e 64 2d 6c 69 73 |ng he-ex|pand-lis|
|00004730| 74 20 68 65 2d 73 65 61 | 72 63 68 2d 6c 6f 63 32 |t he-sea|rch-loc2|
|00004740| 20 68 65 2d 77 68 6f 6c | 65 2d 6b 69 6c 6c 2d 73 | he-whol|e-kill-s|
|00004750| 65 61 72 63 68 20 68 65 | 2d 72 65 73 65 74 2d 73 |earch he|-reset-s|
|00004760| 74 72 69 6e 67 20 68 65 | 2d 73 75 62 73 74 69 74 |tring he|-substit|
|00004770| 75 74 65 2d 73 74 72 69 | 6e 67 20 74 5d 20 33 20 |ute-stri|ng t] 3 |
|00004780| 28 23 24 20 2e 20 31 37 | 37 32 32 29 5d 29 0a 28 |(#$ . 17|722)]).(|
|00004790| 64 65 66 61 6c 69 61 73 | 20 27 68 65 2d 77 68 6f |defalias| 'he-who|
|000047a0| 6c 65 2d 6b 69 6c 6c 2d | 73 65 61 72 63 68 20 23 |le-kill-|search #|
|000047b0| 5b 28 73 74 72 29 20 22 | c0 89 c1 5c 6e 21 0b 40 |[(str) "|...\n!.@|
|000047c0| c4 1d 1e 06 1a 1e 07 1e | 08 0e 07 ac fb 0b ab f8 |........|........|
|000047d0| 0e 09 ac 93 ca 5c 6e 0e | 06 0d 54 23 89 15 ab 88 |.....\n.|..T#....|
|000047e0| 0d 0e 09 42 16 09 aa 6d | 0e 07 ac cb 0e 09 ab c7 |...B...m|........|
|000047f0| 0e 09 40 15 0e 09 41 16 | 09 8a 0e 0b 62 88 60 0d |..@...A.|....b.`.|
|00004800| 5a 65 59 ab 9f 60 0d 5a | 66 0e 06 cc 48 61 ab 94 |ZeY..`.Z|f...Ha..|
|00004810| cd 0e 06 cc 0d 4f 60 0d | 5a ce 23 ab 87 0e 06 0d |.....O`.|Z.#.....|
|00004820| c0 4f 16 07 29 0e 07 ab | 3f cf 0e 07 0e 10 5c 22 |.O..)...|?.....\"|
|00004830| ab 37 c0 89 16 07 ab 35 | 0e 07 ac 0f 0b ab 0c 0b |.7.....5|........|
|00004840| 41 89 13 40 16 06 c4 15 | aa 01 0e 07 2d 87 22 20 |A..@....|....-." |
|00004850| 5b 6e 69 6c 20 72 65 67 | 65 78 70 2d 71 75 6f 74 |[nil reg|exp-quot|
|00004860| 65 20 73 74 72 20 68 65 | 2d 65 78 70 61 6e 64 2d |e str he|-expand-|
|00004870| 6c 69 73 74 20 2d 31 20 | 70 6f 73 20 6b 69 6c 6c |list -1 |pos kill|
|00004880| 73 74 72 20 72 65 73 75 | 6c 74 20 63 61 73 65 2d |str resu|lt case-|
|00004890| 66 6f 6c 64 2d 73 65 61 | 72 63 68 20 68 65 2d 73 |fold-sea|rch he-s|
|000048a0| 65 61 72 63 68 2d 6c 6f | 63 32 20 73 74 72 69 6e |earch-lo|c2 strin|
|000048b0| 67 2d 6d 61 74 63 68 20 | 68 65 2d 73 74 72 69 6e |g-match |he-strin|
|000048c0| 67 2d 62 65 67 20 30 20 | 73 65 61 72 63 68 2d 62 |g-beg 0 |search-b|
|000048d0| 61 63 6b 77 61 72 64 20 | 74 20 68 65 2d 73 74 72 |ackward |t he-str|
|000048e0| 69 6e 67 2d 6d 65 6d 62 | 65 72 20 68 65 2d 74 72 |ing-memb|er he-tr|
|000048f0| 69 65 64 2d 74 61 62 6c | 65 5d 20 36 5d 29 0a 28 |ied-tabl|e] 6]).(|
|00004900| 64 65 66 61 6c 69 61 73 | 20 27 68 65 2d 6b 69 6c |defalias| 'he-kil|
|00004910| 6c 2d 62 65 67 20 23 5b | 6e 69 6c 20 22 60 18 8a |l-beg #[|nil "`..|
|00004920| c1 c2 21 88 c1 c3 21 c4 | 55 ab 83 08 aa 81 60 2a |..!...!.|U.....`*|
|00004930| 87 22 20 5b 6f 70 20 73 | 6b 69 70 2d 73 79 6e 74 |." [op s|kip-synt|
|00004940| 61 78 2d 62 61 63 6b 77 | 61 72 64 20 22 5e 77 5f |ax-backw|ard "^w_|
|00004950| 22 20 22 77 5f 22 20 30 | 5d 20 32 5d 29 0a 28 70 |" "w_" 0|] 2]).(p|
|00004960| 72 6f 76 69 64 65 20 27 | 68 69 70 70 69 65 2d 65 |rovide '|hippie-e|
|00004970| 78 70 29 0a | |xp). | |
+--------+-------------------------+-------------------------+--------+--------+